Due to the change from rendering gauges using GDI to DirectX (see Gauge Conversion), fonts are now rendered as bitmaps rather than directly from Windows fonts. To create a bitmap font file (.fnt), use the FontGen tool. Each bitmap font also needs a JSON format file which describes the characters available. FontGen also uses this file to create the bitmap from a Windows font. A typical command line for FontGen is: fontgen arial.json Where arial.json looks like this: { "in" : [ { "scale_x" : 64.0, "scale_y" : 1.0, "monochrome" : false, "force_auto_hint" : true, "font_file_name" : "arial.ttf", "font_size_ranges" : [ [8, 35] ], "unicode_ranges" : [ [ 33, 126 ], [ 160, 255 ], [ 339, 340 ] ] } ], "out_filename" : "arial.fnt" } Note that the source TTF file needs to be in the same folder as the JSON file during conversion. JSON parameters descriptions
|
Aircraft >