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

Summary: Doesn't look non-scalable fonts
Product: SDL_ttf Reporter: beuc
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.12   
Hardware: x86_64   
OS: Linux   
Attachments: Patch
Font that used to load until 2.0.12

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