-
Notifications
You must be signed in to change notification settings - Fork 77
How to edit fonts
-
Download the
lstpacker.exe
from https://github.com/Return-To-The-Roots/libsiedler2/releases/tag/v1.0.0 to create and extract lst-files. -
Put it next to the
GFX
folder of S2 -
Now start with the existing font. It can be found in
RTTR/LSTS/OUTLINE_FONTS.LST
. Just drag it onlstpacker.exe
to unpack it. It will create a folder namedOUTLINE_FONTS.LST
with 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 extensionfonX
and notfon
. The latter are the S2-compatible fonts.fonX
should 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.bmp
to the name so it looks likeU+12A4.player.bmp
,U+0033.player.bmp
for unicode or4772.player.bmp
,51.player.bmp
for decimal. -
Once you finished that, drag the
OUTLINE_FONTS
folder tolstpacker
which 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.