[Fixed] 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.

Scaled monospace fonts are incorrectly spaced

Postby Talon1024 » Thu Jun 03, 2021 2:26 pm

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 allExpand view
CellSize 5, 10
Kerning 1
Scale 2

And the font.inf from the variable-width font:
Code: Select allExpand view
Kerning 1
Scale 2
Joined: 27 Jun 2016
Github ID: Talon1024
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Scaled monospace fonts are incorrectly spaced

Postby Graf Zahl » Tue Aug 10, 2021 1:18 pm

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