YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

Padding for Font sprite sheets #2929

Open pferguso6222 opened 1 year ago

pferguso6222 commented 1 year ago

Is your feature request related to a problem?

When making Gamemaker font out of TrueType fonts, it's important to allow the user to add their own padding around each character. This allows the user to take the sprite sheet asset that gets generated by Gamemaker, and bring it into photoshop to add their own layer styles onto an otherwise plain white font. This technique is used with TextMeshPro textures in Unity to make custom bitmap fonts, and while it is possible in Gamemaker, sometimes there is not enough padding to create multiple outlines and drop shadow effects.

Describe the solution you'd like

Allow a padding value in pixels when generating fonts, which gets added around each character on the glyph.

Describe alternatives you've considered

No response

Additional context

No response

rwkay commented 1 year ago

Internally we do have a gap between the fonts, it looks like we do not explicitly expose that to the user, so we would just be looking to expose that to the user (probably in the Advanced Options)

HansGuentherCode commented 8 months ago

I would also love to see this. I often use a post-pre-multiplied (I know..) alpha shader and interpolation, and end up with ugly vertical lines in the font sometimes when rendering. It might also be nice to be able to pack the characters as if they were sprites to gain benefits from the border size option in the texture group settings.

Cheers, and thanks for all the hard work =)