Skip to content

Better Text Layout (TextKit 2)

Compare
Choose a tag to compare
@LEOYoon-Tsaw LEOYoon-Tsaw released this 13 Feb 16:43
· 49 commits to master since this release

Adopts TextKit 2, the result is more reliable text layout, especially in vertical mode, and with exotic characters like Emoji.

Two screenshots below show the difference: left is old version (Emoji overlaps with other glyphs), right is new version.

Old overlapping Emoji layout New better Emoji layout

This new TextKit 2 is an effort to modernize text rendering, in theory it should also benefit the display for other scripts. Let me know if you have any comment.

P.S. This is also an elegant fix for the annoying line height alternation when Emoji shows and disappears.

Requires macOS 12+