We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2574 - Doesn't look non-scalable fonts
Summary: Doesn't look non-scalable fonts
Status: RESOLVED FIXED
Alias: None
Product: SDL_ttf
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.12
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-05 23:15 UTC by beuc
Modified: 2014-06-16 01:28 UTC (History)
0 users

See Also:


Attachments
Patch (680 bytes, patch)
2014-06-05 23:15 UTC, beuc
Details | Diff
Font that used to load until 2.0.12 (6.36 KB, application/x-ms-dos-executable)
2014-06-05 23:16 UTC, beuc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description beuc 2014-06-05 23:15:03 UTC
Created attachment 1671 [details]
Patch

SDL_ttf used to load non-scalable fonts such as vgasys.fon (attached).

Test:
$ showfont vgasys.fon
Couldn't load 18 pt font from vgasys.fon: Couldn't set font size

With previous versions, or with attached fix (which reverts a 2.0.12 change):
$ showfont vgasys.fon
Font is generally 16 big, and string is 16 big

Please consider the attached patch for inclusion :)
Comment 1 beuc 2014-06-05 23:16:23 UTC
Created attachment 1672 [details]
Font that used to load until 2.0.12
Comment 2 beuc 2014-06-05 23:18:21 UTC
By the way, never mind the "application/x-ms-dos-executable" content-type from Mozilla, that's the normal headers for MS console fonts :/
Comment 3 Sam Lantinga 2014-06-16 01:28:41 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_ttf/rev/86aa91bce20c