cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a bitmap font for use with native mobile SDK?

notknown
Honored Guest
Samples use the "efigs.fnt".
I was trying to find out how to generate a bitmap SDF font in the same format as "efigs.fnt" (it is a JSON file) from .ttf font. Is there a tool I can use to achieve this?
Also does the image file have to be in .ktx format or can it be something else as well? 
1 REPLY 1

Mitnainartinari
Protege
In the Mobile SDK, there's a project at Tools/fontue. I've never used it but it looks like it might be what you're looking for. Here's the description from the main.cpp file:
Fontue takes a TrueType font as input and uses the FreeType library to create a bitmapped or signed distance field font image and glyph file that can be used to render a variable-spaced bitmap font in high-performance applications.