mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-24 11:44:39 +00:00
Fix handling of combined ligatures and kerning.
Remove hasGlyph helper and ligature tracking array. Use single call to: - CFAttributedStringCreate - CTLineCreateWithAttributedString and a call per bi-di/layout run to: - CTRunGetGlyphs for glyphs - CTFontGetAdvancesForGlyphs for advances - CTRunGetStringIndices for indices of ligatures And an efficient loop over the substituted characters of ligatures, to make glyph context calls for incrementing the attribute indices.
This commit is contained in:
+469
-530
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user