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

Scons copy bdf fonts. #570

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Conversation

NQNStudios
Copy link
Collaborator

I did some experimenting on getting @clort81's ClortSans font into the game.

It turns out that the resource manager had already been updated to support bdf files. The one problem was that Scons would only copy ttf files, so I fixed that, and that should suffice to Fix #229. (Note: they also asked for PCX fonts, but SFML does not support those:

The supported font formats are: TrueType, Type 1, CFF, OpenType, SFNT, X11 PCF, Windows FNT, BDF, PFR and Type 42. Note that this function knows nothing about the standard fonts installed on the user's system, thus you can't load them directly.

Having made that change, I tried loading ClortSans-12 which can be downloaded here:

https://github.com/calref/cboe/files/4143613/bdftest.tar.gz

I changed the code to use ClortSans wherever FONT_PLAIN was requested. This broke an enormous amount of in-game text which tries to render FONT_PLAIN in sizes other than 12-point. Unfortunately, in the places where 12-point was requested and it rendered correctly, it didn't look as good in-game as in the mockup images (I assume because of weird rendering issues). It became apparent to me that even if I could make it render well, it would be an enormous amount of work to make sure that all text in the game switched to the bitmap font and still looked good. I'm not interested in doing that work. We also would need the font in a bunch of other sizes that I don't think it exists in.

Also, these other links to ClortSans bitmap fonts are dead:

https://clort.shell.ircnow.org/ClortSans1_0.zip
https://clort.shell.ircnow.org/ClortSansBold1_0.zip

I don't know if they were to variants in any of the other sizes we'd need.

@CelticMinstrel CelticMinstrel merged commit a5d3780 into calref:master Feb 5, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow loading bitmap fonts
2 participants