• Hello and welcome to MSFC. We are a small and close knitted community who specialises in modding the game Star Trek Armada 2 and the Fleet Operations modification, however we have an open field for discussing a number of topics including movies, real life events and everything in-between.

    Being such a close community, we do have some restrictions, including all users required to be registered before being able to post as well as all members requiring to have participated in the community for sometime before being able to download our modding files to name the main ones. This is done for both the protection of our members and to encourage new members to get involved with the community. We also require all new registrations to first be authorised by an Administrator and to also have an active and confirmed email account.

    We have a policy of fairness and a non harassment environment, with the staff quick to act on the rare occasion of when this policy is breached. Feel free to register and join our community.

[Help] A2/FO Font Documentation

CABAL

<< ■ II ▶ >>
Staff member
Administrator
Star Navigator
Rogue AI technocrat
Joined
15 Aug 2009
Messages
3,511
Age
32
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.

EDIT: 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.
 
Last edited:
Top