Changing Spacing Between Lines in BitmapText

Hi! New user here! I’m using bitmap text in my game, some of which will have multiple lines. I learned that putting a newline character or carriage return/newline pair will cause the text to split onto another line, but in doing this, I found that there is more spacing between the lines than I would like. How can I decrease the spacing between lines? Is this a capability Phaser offers, or do I have to configure my bitmap font generator in a specific way? (I’m using Littera, for the record.)

Any help would be greatly appreciated!

Never mind! I figured it out! I discovered that by editing the .fnt file generated by Littera, I can change the spacing between lines. In the “common” block in the .fnt XML file, I can change the value of “lineHeight” from “65” to another value that suits me better, like “32”.

1 Like