Fix some emoji with modifer scalar render error #129
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What steps will reproduce the problem?
In flutter. Skia will render errors in rendering emojis which more than one Scalar. Like 1️⃣ (U+0031 U+FE0F U+20E3)
flutter related issues:
flutter/flutter#108720
flutter/flutter#49627
flutter/flutter#100964
What is the expected output? What do you see instead?
Render emoji nomarly.
What version of the product are you using? On what operating system?
I don't have more iPhone devices. I got two iPhones.
One is iPhone 6, iOS 12.4.8, and it renders OK.
Another is iPhone 12 Pro, iOS 16.2. and it renders an error.
Please submit a code sample via fiddle.skia.org showing the issue.
Flutter demo:
I tracked this bug. When using iPhone 6, iOS 12.4.8. It will fallback font 'Apple Color Emoji' And in iPhone 12 Pro, iOS 16.2 will fallback font '.LastResort' which will render '??' finally.
And I tried to fix this bug which the chromium project has similar issues:https://chromium.googlesource.com/chromium/src.git/+/7846480579c09efa317a65beb58c195a6a5bb352