Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug 4339 - Using SDL_ttf Outline, TTF_GlyphMetrics won't report…
… updated values Sylvain When using outline style TTF_SetFontOutline(), it appears that TTF_GlyphMetrics won't return the correct glyph values, taking into account the user outline value. It also appears the current width is sometime at little bigger (few pixels), when it's not always necessary. it's not the same calculation for other styles. (reason is because final surface width is *always* incremented of 2 outlines, whereas the ending glyph should contribute by adding max(advance/maxx), and advance remain fixed - not subject to outline style).
- Loading branch information
Showing
1 changed file
with
78 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters