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

LowLevelGraphicsContext: Replace glyph drawing functions with single drawGlyphs()

This commit is contained in:
reuk 2024-03-26 13:13:55 +00:00
parent 03b1e918fe
commit 1560f87111
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
11 changed files with 170 additions and 89 deletions

View file

@ -2,6 +2,27 @@
# Version 8.0.0
## Change
The virtual functions LowLevelGraphicsContext::drawGlyph() and drawTextLayout()
have been removed.
**Possible Issues**
Classes overriding these functions will fail to compile.
**Workaround**
Replace drawGlyph() with drawGlyphs(), which draws several glyphs at once.
Remove implementations of drawTextLayout().
**Rationale**
On Windows and macOS, drawing several glyphs at once is faster than drawing
glyphs one-at-a-time. The new API is more general, and allows for more
performant text rendering.
## Change
JUCE widgets now query the LookAndFeel to determine the TypefaceMetricsKind to