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:
parent
8693507ead
commit
82080f9372
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue