1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Improved the vertical font hinting algorithm and removed some duplicated typeface code.

This commit is contained in:
jules 2014-01-05 19:46:13 +00:00
parent 45b49f84d1
commit 42bff200ed
10 changed files with 89 additions and 123 deletions

View file

@ -1410,7 +1410,7 @@ public:
AffineTransform t (transform.getTransformWith (AffineTransform::scale (fontHeight * font.getHorizontalScale(), fontHeight)
.followedBy (trans)));
const ScopedPointer<EdgeTable> et (font.getTypeface()->getEdgeTableForGlyph (glyphNumber, t));
const ScopedPointer<EdgeTable> et (font.getTypeface()->getEdgeTableForGlyph (glyphNumber, t, fontHeight));
if (et != nullptr)
fillShape (new EdgeTableRegionType (*et), false);