Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Since this new version, TTF fonts imported are not sized the same after being exported, and they appear scaled differently. They used to preserve the size. The way I'm testing it is making a Godot project, adding a RichTextLabel using this font: https://ggbot.itch.io/public-pixel-font, and then importing and exporting the font without making changes. After assets refresh, the font is visibly smaller. This is a major concern for me, because I want to be able to edit existing fonts without compromising on the integrity of the original font. I would just accept this as a consequence of using this tool if it weren't for the fact that this did not happen on the old version before the rewrite. Does anyone know what is happening here?

Note: I tried the line height script posted above and it is *different*, maybe closer to the size, but it is not quite the same as the original.

(2 edits)

Check Ella Jameson's comment above - they discovered it exports at 133% size, and made a python script to fix it.

If that's not working for you, I recommend importing the font into FontForge and manually tweaking the metrics to your liking.

(+1)

I believe that is the script posted above that I tried and it produced a different font position and size from the original.

Here is a script that works for my use case that takes the original font as a reference and restores everything that changed while keeping the changes to glyphs in the table.

https://gist.github.com/Flashfyre/b8047bd66ed670ba297521060ce98483