-
Notifications
You must be signed in to change notification settings - Fork 87
How to edit fonts
-
Download the
lstpacker.exefrom https://github.com/Return-To-The-Roots/libsiedler2/releases/tag/v1.0.0 to create and extract lst-files. -
Put it next to the
GFXfolder of S2 -
Now start with the existing font. It can be found in
RTTR/LSTS/OUTLINE_FONTS.LST. Just drag it onlstpacker.exeto unpack it. It will create a folder namedOUTLINE_FONTS.LSTwith 3 subfolders: On for each font-type. There are 3 by now: Small, Normal and Large (0, 1 and 2 respectively)
If you want to add unicode glyphs make sure these subfolders have the extensionfonXand notfon. The latter are the S2-compatible fonts.fonXshould be the ones from recent RTTR nighlies -
Now you can just add your glyphs to the 3 font-types. As the name, use either Unicode names or their decimal counterparts. Make sure you add
.player.bmpto the name so it looks likeU+12A4.player.bmp,U+0033.player.bmpfor unicode or4772.player.bmp,51.player.bmpfor decimal. -
Once you finished that, drag the
OUTLINE_FONTSfolder tolstpackerwhich will create a newOUTLINE_FONTS.NEW.LST. Rename and copy that to your RTTR folder overwriting the oldOUTLINE_FONTS.LST. -
If everything works, you can also ask the developers to include your new glyphs in the official builds.
Note on creating the fonts: You can actually only use 5 colors: The background color (pink), the outline color (black) and up to 3 colors for the glyph itself (check the existing ones) Technically you could also use other colors for the outline, but this requires some care as they must be in the S2 palette.
