SMALLFONT replacements can break the colors of menu font

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

SMALLFONT replacements can break the colors of menu font

Postby Marisa Kirisame » Fri May 03, 2019 5:58 am

This is a little issue I noticed lately with Doom Tournament, since it replaces SMALLFONT to be more consistent with the UT HUD. It's especially problematic for grayed out text (or everything in general when loaded with Heretic).


If there is some workaround for this I could implement on my end without having to get rid of the font itself, I'd do it instead.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: SMALLFONT replacements can break the colors of menu font

Postby Marisa Kirisame » Fri May 03, 2019 8:02 am

So far I've worked around it by recoloring the font (it was plain white).
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: SMALLFONT replacements can break the colors of menu font

Postby Graf Zahl » Sun May 05, 2019 2:15 am

What this tries is to match the VGA font's color to the mod provided SmallFont. Obviously in some degenerate cases this will lead to ugly results, but when testing this I was unable to find a font to fall victim to this problem. I guess what this should do is to fall back to some standard color if the font is a single solid color that cannot be converted into a color ramp.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: SMALLFONT replacements can break the colors of menu font

Postby Graf Zahl » Fri Aug 09, 2019 4:43 am

So, no link to a testable mod. I think this can wait until later then.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: SMALLFONT replacements can break the colors of menu font

Postby Marisa Kirisame » Fri Aug 09, 2019 2:14 pm

Oh, I thought this was a wontfix after I worked around it. Hold on.

Edit: huh, I can't reproduce this anymore.
Edit #2: nvm, if I make the single color font gray it causes menu options to turn purple.

Here's the example file.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support


Return to Bugs

Who is online

Users browsing this forum: No registered users and 3 guests