Has anyone used q3font to create custom fonts for their menus and such? I tried using it, but when I loaded the game, letters were drawn overtop of each other and it was generally a mess.
So I took the time to figure out the glyph system in the code so that I could understand why my font wasn’t working. During my investigation, I decided to create my own courier bold 21 font (just like the official font used in ET) to see if q3font would create the same output as the official .dat/.tga files. Well, it didn’t. And the problem is the pitch value of the characters are all wrong in the q3font generated output. Has anyone experienced this? I can’t imagine that everyone is going to use the same fonts as ET in their mods.
For those of you wondering what in the world pitch is, here’s a quick rundown on the important properties related to character spacing.
pitch, imageWidth, and xSkip
Ignoring any scaling (which would be constant across all three values), here’s my understanding of how the game spaces characters:
########
########## ###
### ### ###
### ###
############ ###
############ ###
### ### ###
### ### ###
|<--pitch-->||<-imageWidth->| |<-pitch->||<-iWidth->|
|<------------xSkip----------->||<---------xSkip-------->|
where:
imageWidth is the width of the character
pitch is the indentation
xSkip is the sum of the character and the left and right margins
But again, does anyone know why q3font spits out really bad pitch values?