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 - small extra padding for italic style
Summary: small extra padding for italic style
Status: RESOLVED FIXED
Alias: None
Product: SDL_ttf
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-30 21:45 UTC by Sylvain
Modified: 2018-10-31 03:17 UTC (History)
0 users

See Also:


Attachments
patch (737 bytes, patch)
2018-10-30 21:47 UTC, Sylvain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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