[Fixed] Doom's indexfont has a bad "1"

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Doom's indexfont has a bad "1"

Postby Jimmy » Fri Sep 22, 2017 6:19 am

Here are all the characters from Doom's indexfont laid out, using the default translation. The "1" clearly has some dark blue pixels that shouldn't be there.

Image

Also... I'm curious as to why ZDoom makes it blue by default? I know it's contained in a lump in *zdoom.pk3, but why is it not using the individual graphics from the IWAD(s)?
User avatar
Jimmy
 
 
 
Joined: 10 Apr 2006
Discord: Jimmy#4100
Twitch ID: JimmySquared
Operating System: Windows 10/8.1/8/201x 64-bit

Re: Doom's indexfont has a bad "1"

Postby Graf Zahl » Fri Sep 22, 2017 7:09 am

This is used for the alternative HUD which did not work right with some of the options that were available, so in order to avoid problems it uses its own separate font. The cyan color is merely an artifact of the tool I used to create it, which swapped R and B channels. It doesn't really matter because it never gets used untranslated.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Doom's indexfont has a bad "1"

Postby _mental_ » Tue Sep 26, 2017 2:08 am

A bit unrelated to the bug report itself but still: why do these fonts use own format(s) instead of generic graphics one like .png?
If it was done for performance reasons that's fine. If not, I think it will be much easier to fix the issue with such assets stored in commonly used format.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Doom's indexfont has a bad "1"

Postby Graf Zahl » Tue Sep 26, 2017 2:55 am

This all comes from a time where homebrew format for all kinds of stuff where the most normal thing in the world. Some others I got rid of over the years (like XLAT and DEHSUPP) , but the fonts are a) a resource that modders can probide and b) is a lot more complex to handle than those other formats.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Doom's indexfont has a bad "1"

Postby Graf Zahl » Thu Aug 12, 2021 12:07 pm

Finally fixed after redoing the font in sheet format.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests