Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts aren't working on SDL #24844

Open
pingpong2011 opened this issue Aug 15, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@pingpong2011
Copy link

commented Aug 15, 2018

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
fonts

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

Edit: directly embedded image

@pingpong2011

This comment has been minimized.

Copy link
Author

commented Sep 6, 2018

Part of my problem is caused by:

2345b3b

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.

@pingpong2011

This comment has been minimized.

Copy link
Author

commented Sep 6, 2018

It turns out the Veramono font was being found, but because the wrong size was "invalid", it picked the smaller size, which was half the the issue.

The other half is the font looks like garbage, because although I can select 20x20 font spacing, the 18 font is not rendered correctly period:

0.C-30488-ge0c26b1 20x20x18 :
Most of the letters have some very poor detail:
font_update

0.C-26527-q7420d51 20x20x18 :
Most are better, but some are still blobby and misshapen:
fonts_previous

0.C-30488-ge0c26b1 20x20x12 scale 2x in Paint:
Many of the letters are blobby. e's and b's have a distinct single pixel protruding on the right.
font_gross

The font rendering looks terrible. I remember switching from Veramono to a different font at some point in the past, and now, it seems the reason may have been because font rendering made it look worse. Unfortunately I do not remember the versions.

I realized I could grab 0.C stable:
Font looks perfect, whether 20x20x18 or 18x18x18
font_cooper

@pingpong2011 pingpong2011 changed the title Fonts aren't working on Windows SDL Fonts aren't working on SDL Sep 10, 2018

@pingpong2011

This comment has been minimized.

Copy link
Author

commented Sep 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.