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 4345

Summary: small extra padding for italic 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-10-30 21:45:57 UTC
I think we don't need this part. Because the pixmap is computed by freetype which gives src buffer.

int bump = (int)SDL_ceilf(font->glyph_italics);
dst->pitch += bump;
dst->width += bump;
Comment 1 Sylvain 2018-10-30 21:47:09 UTC
Created attachment 3423 [details]
patch

no memory issue, nor rendering, but please double-check.
Comment 2 Sam Lantinga 2018-10-31 03:17:47 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL_ttf/rev/db7b5a1b88ba