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

Remove TextLayout::createNativeLayout()

This commit is contained in:
attila 2024-05-21 18:04:25 +02:00 committed by Oliver James
parent 38f299a054
commit 51955453ef
8 changed files with 33 additions and 981 deletions

View file

@ -2,6 +2,38 @@
# Version 8.0.0
## Change
As part of the Unicode upgrades TextLayout codepaths have been unified across
all platforms. As a consequence the behaviour of TextLayout on Apple platforms
will now be different in two regards:
- With certain fonts, line spacing will now be different.
- The AttributedString option WordWrap::byChar will no longer have an effect,
just like it didn't have an effect on non-Apple platforms previously. Wrapping
will now always happen on word boundaries.
Furthermore, the JUCE_USE_DIRECTWRITE compiler flag will no longer have any
effect.
**Possible Issues**
User interfaces using TextLayout and the WordWrap::byChar option will have their
appearance altered on Apple platforms. The line spacing will be different for
certain fonts.
**Workaround**
There is no workaround.
**Rationale**
The new, unified codepath has better support for Unicode text in general. The
font fallback mechanism, which previously was only available using the removed
codepaths is now an integral part of the new approach. By removing the
alternative codepaths, text layout and line spacing has become more consistent
across the platforms.
## Change
As part of the Unicode upgrades the vertical alignment logic of TextLayout has