Scaled monospace fonts are incorrectly spaced

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
Talon1024
 
 
Posts: 374
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Scaled monospace fonts are incorrectly spaced

Post by Talon1024 »

If you make a monospace font using a font character sheet, and you scale it using the "scale" property in its font.inf file, the font characters will be incorrectly spaced; The individual characters will be scaled, but they will take up as much space as if they weren't scaled.

Here's a small example I made. It has two fonts in it: smallfont and smallmono. "smallfont" is the same as "smallmono", except it's been cut up into individual font character images. Rename the "smallmono" folder to "smallfont" and you'll see what I'm talking about.

EDIT: Here's a screenshot of the monospace font, and the variable-width version ingame, as well as the font.inf file from the monospace font:

Code: Select all

CellSize 5, 10
Kerning 1
Scale 2
And the font.inf from the variable-width font:

Code: Select all

Kerning 1
Scale 2
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Scaled monospace fonts are incorrectly spaced

Post by Graf Zahl »

fixed
Post Reply

Return to “Closed Bugs [GZDoom]”