[Won't change] Lowercase "y" gets replaced incorrectly?

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Lowercase "y" gets replaced incorrectly?

Postby phantombeta » Sun Dec 13, 2020 4:05 pm

The lowercase letter "y" gets replaced with the wrong glyph, at least in custom fonts. I'm not sure what the glyph it's replaced with is, but it's not any glyph from the custom font.
I'm not sure when it started happening, but it appears to have been between 4.3.3 and 4.4.2.

Steps to reproduce:
  • Start a new game with the provided example file
You do not have the required permissions to view the files attached to this post.
User avatar
phantombeta
In the meadow of sinful thoughts, every flower's a perfect one
 
Joined: 02 May 2013
Location: Brazil, South America, Earth, Orion-Cygnus Arm, Milky Way
Discord: phantombeta#2461
Twitch ID: phantombeta_
Github ID: Doom2fan
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Lowercase "y" gets replaced incorrectly?

Postby Graf Zahl » Sun Dec 13, 2020 4:12 pm

You are doing a few things that combined cause the problem. The original Doom font defines the '|' symbol with a bad index that's the small y - 121 instead of 124. This gets handled by the font loader for the internal font - but you define a new font as a FONTDEFS template - which quite efficiently works around the patching code and loads the bogus '|' in its incorrect place as 'y'.

Solution: Do not redefine a custom font by using 'STCFN as its template name. Use something unique.
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 2 guests