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 4383

Summary: Small issue with face style
Product: SDL_ttf Reporter: Sylvain <sylvain.becker>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86_64   
OS: Linux   
Attachments: patch

Description Sylvain 2018-11-14 10:34:01 UTC
If you request the font style the first time, you won't get the potential style of the font.

I've introduce this here by moving code, font->style is initialized before font->face_style.
https://hg.libsdl.org/SDL_ttf/rev/ff81ac6d76c4

Here's a clean-up also to lighten patch of bug 4361.

so that:
- face_style is removed from TTF_Font structure
- macro, at runtime, are smaller
- face_style is added/removed by TTF_Get/SetFontSyle().
Comment 1 Sylvain 2018-11-14 10:34:55 UTC
Created attachment 3491 [details]
patch
Comment 2 Sylvain 2018-12-18 08:44:00 UTC
Fixed in https://hg.libsdl.org/SDL_ttf/rev/758230d133f7