-
-
Notifications
You must be signed in to change notification settings - Fork 153
Fonts
Matthew Albrecht edited this page May 23, 2019
·
1 revision
Fonts in Acid use a signed distance field texture along with a Angle Code descriptor file. These files can be generated using the Fonts tool provided in Acid Tools or alternatively using Hiero
- Download Acid Tools
- Select a folder where outputs will be added
- Drag your .otf font onto the window (not text box)
- If more than one .png is generated with the font reduce Padding (second slider) until all text fits on one page
- Download Hiero
- Choose a font, and change rendering to Java
- Change the text format to ASCII
- Under the font panel set the size to 34, or when the text fits on one page
- Change the padding values to 8
- Remove the color effect and add a distance field with a scale of 15 and spread of 10.0
- Save BMFont
Using your new fonts in Acid is fairly straight forward, the image above shows how Proxima Nova is saved (note: the .otf files are not required). Remove the type name from the .png and .fnt so only the style type is left (ex: Bold.fnt and Bold.png), and add to a new resource folder of the type name.
Usage in Acid will follow type name, style as shown below:
FontType::Create("Fonts/ProximaNova", "Regular")