Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upFonts aren't working on SDL #24844
Comments
This comment has been minimized.
This comment has been minimized.
|
Part of my problem is caused by: 2345b3b#diff-58d299f459cbd7d41c0d673ed9d9ad4c I played with font size larger than tiles. This did cut off some letters a little but improved visibility ( filled font space better ). I've yet to determine why it's not loading my font file at all, despite the same fontlist.txt, fonts.json, and font location versus the above build from March 1st. Edit: I have also found a further problem likely caused by the size issue: I can't use font height, width, and size that are the same. If I use "FixedsysTTF Monospaced", and set 18, 18, 18, it uses font size 12. If I increase to 19, 19, 18, it loads. |
This comment has been minimized.
This comment has been minimized.
pingpong2011
changed the title
Fonts aren't working on Windows SDL
Fonts aren't working on SDL
Sep 10, 2018
This comment has been minimized.
This comment has been minimized.
|
I compiled Cataclysm on the Raspberry Pi and the default font has issues: most of the letters are the same, but m's and 0's are noticeably wrong. Font is being drawn incorrectly across multiple operating systems. |




pingpong2011 commentedAug 15, 2018
•
edited
config\fonts.json
Change fontsize 16->20, nothing happens.
Change fontwidth 8->16, the space gets wider, but font is the same size.
I like VeraMono font, so I download VeraMono.ttf to data\font\ , delete fontlist, restart and close game.
Bitstream Vera Sans Mono Roman
data/font//VeraMono.ttf
0
Change font to "VeraMono", nothing happens. Change to "Bitstream Vera Sans Mono Roman", nothing happens. Change to "fixedsys", game crashes. fixedsysttf, same "default" font as VeraMono.
To Reproduce
0.C-30488-ge0c26b1 do the above^, you can even try renaming "Bitsteam ..." to Veramono, and it doesn't work. I checked the last version I had (below) and I had manually added the font to the end of the fontlist.
0.C-26527-q7420d51 works fine
Expected behavior
Font should increase size and not crash.
Screenshots

Versions and configuration(please complete the following information):
Windows SDL, made window larger (more characters) and turned off tiles.
Edit: directly embedded image