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

ShapedText: Apply the horizontal scaling to the extra kerning

This fixes an undesired behaviour where squashing the text using
GlyphArrangement::addFittedText would only squash the visible glyphs but
not the additional kerning space between them.
This commit is contained in:
attila 2024-10-15 14:45:45 +02:00
parent 8693507ead
commit 82080f9372

View file

@ -497,7 +497,7 @@ static std::vector<ShapedGlyph> lowLevelShape (const String& string,
jassert (unknownGlyph == infos.end());
[[maybe_unused]] const auto trackingAmount = ! trackingIsDefault
? font.getHeight() * tracking
? font.getHeight() * font.getHorizontalScale() * tracking
: 0;
std::vector<size_t> clusterLookup;