Scaled monospace fonts are incorrectly spaced

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!

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

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest