A2/FO Font Documentation

I want my 15 rapid-fire quantum torpedo launchers Uber-Defiant now! - Get help from modders. Share your work. Discuss modifications.
posted on May 10th, 2016, 10:58 pm
Does anybody have any documentation on how the font sprite files work? I want to change some of the sprites, like the "Units Granted" or "Mixed-Tech" font sprites, to icons since the mod I'm working on doesn't need those particular ones and I would like to have some new icons to use in tooltips. If I I just edit the texture file, then there will be the icon, followed by a long blank. I basically just need to know how to make the sprite narrower, but the font SPR files are very different from the others.
posted on May 11th, 2016, 8:50 pm
After staring at it for a while, I figured it out. The large set of number pairs is an array of x and y coordinates for characters, the large column of single numbers is their width, and the sprite entry at the very bottom contains the font's character height. I assume that the order is hardcoded so that the first entry is always the sprite drawn for a space and so forth. I am now commenting the font files to make it easy to find characters and will post the final commented files when I'm done.
posted on May 14th, 2016, 1:39 am
If anybody is interested, here's the final commented font files. If you want to add custom symbols to the tooltips or create entirely new fonts, these files should help.


(6.18 KiB) Downloaded 218 times

Who is online

Users browsing this forum: Google [Bot] and 1 guest