mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 09:10:44 +00:00
[ios] Fix unicode emoji off by one error.
This commit is contained in:
@@ -689,7 +689,7 @@ static double RNSVGTSpan_radToDeg = 180 / M_PI;
|
|||||||
CTRunGetStringIndices(run, CFRangeMake(0, 0), indices);
|
CTRunGetStringIndices(run, CFRangeMake(0, 0), indices);
|
||||||
CTFontRef runFont = CFDictionaryGetValue(CTRunGetAttributes(run), kCTFontAttributeName);
|
CTFontRef runFont = CFDictionaryGetValue(CTRunGetAttributes(run), kCTFontAttributeName);
|
||||||
CTFontGetAdvancesForGlyphs(runFont, kCTFontOrientationHorizontal, glyphs, advances, runGlyphCount);
|
CTFontGetAdvancesForGlyphs(runFont, kCTFontOrientationHorizontal, glyphs, advances, runGlyphCount);
|
||||||
CFIndex nextOrEndRunIndex = n - 1;
|
CFIndex nextOrEndRunIndex = n;
|
||||||
if (r + 1 < runEnd) {
|
if (r + 1 < runEnd) {
|
||||||
CTRunRef nextRun = CFArrayGetValueAtIndex(runs, r + 1);
|
CTRunRef nextRun = CFArrayGetValueAtIndex(runs, r + 1);
|
||||||
CFIndex nextRunGlyphCount = CTRunGetGlyphCount(nextRun);
|
CFIndex nextRunGlyphCount = CTRunGetGlyphCount(nextRun);
|
||||||
|
|||||||
Reference in New Issue
Block a user