Create and Import 2D Fonts - defterai/StarCitizenModding GitHub Wiki
Create and edit fonts
Work in progress...
Import and export game fonts
Prepare work environment
- Install JPEXS Free Flash Decompiler (installer can be found in modding tools package
apps/ffdec_11.2.0_setup.exe
)
Import TrueType (.ttf) or system fonts into game files
- Open game file with fonts
.swf
/.gfx
by Decompiler - Search
fonts
section in left browse panel and expand it - Select font and check in characters list or preview image that all needed glyph is present
- In case some glyph is missing press
Embed...
button and choose in appeared dialog any installed in system font or font from.ttf
file - Select which glyph ranges you want to import (please DO NOT import all glyph to reduce localization package size) or type in bottom input field characters. You can use utf-8 glyph helper application from modding package
apps/utf8-glyph-helper/Utf8GlyphHelper.exe
to get list of missing characters. Just copy font characters to this application and inspect missing characters in report. You can also add custom characters set by create utf-8 files with characters inlanguages
orcustom
folder (they would only appear after application restart). - Solve any conflicts as you need
- Repeat steps above for all fonts inside file and all files with fonts
Export game font to TrueType (.ttf) font file
- Open game file with fonts by Decompiler
- Search
fonts
section in left browse panel and expand it - Select fonts to export, by right mouse click open popup menu and press
Export selection
- Choose export format
TTF
and pressOK
button - Select directory for export in dialog and press
Open
button