mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
Previously, code such as the following would return a smaller string
width for larger tracking values:
juce::Font f { juce::FontOptions{}.withPointHeight (16.0f) };
const auto g = f.withExtraKerningFactor (1.0f);
const auto a = f.getStringWidth ("foobar");
const auto b = g.getStringWidth ("foobar");
With this change applied, the width 'b' is greater than the width 'a',
as expected.
|
||
|---|---|---|
| .. | ||
| colour | ||
| contexts | ||
| detail | ||
| effects | ||
| fonts | ||
| geometry | ||
| image_formats | ||
| images | ||
| native | ||
| placement | ||
| unicode | ||
| juce_graphics.cpp | ||
| juce_graphics.h | ||
| juce_graphics.mm | ||
| juce_graphics_Harfbuzz.cpp | ||