Adding New Fonts
For each new font to add, you need the following files:
- A font asset - True Type Font (
.ttf) or Open Type Font (.otf) file - A font
.fontfile describing the asset {#create-font-xml-file}
To add a new font to your UI
Save the font asset (
.ttfor.otffile) to your game project directory, such asdev\SamplesProject\Font.Copy an existing font
.fontfile into your game projectFontdirectory. The following directories (included in the O3DE project) contain font.fontfiles for reference:dev\Engine\Fonts\dev\SamplesProject\Fonts\
Change the
.fontfile name (leave the.fontextension unchanged). Use any file name that is descriptive and appropriate for your purposes.Open the
.fontfile and edit the following line to point to your font asset file name.<font path="yourFont.ttf" w="512" h="256"/>
After the Asset Processor has processed your font assets, you can select your font by
loading the font .font file
in the UI Editor for any text component.