Open jrabbit opened 3 years ago
Yeah you're right. Right now the restriction for emoji strings are very strict. See:
We need a better way to detect complicated emojis.
Yep that's a good point. I wonder if ZWJ emoji will actually work as a FonIcon
😬
Oh, no they won't
So we'll need to file this upstream on WinUI
EDIT: NEVERMIND I'M DAFT.
<muxc:FontIconSource FontFamily="Segoe UI" Glyph="🐱💻" />
The icon doesn't use font fallback, it needs to be told FontFamily="Segoe UI"
explicitly.
So ZWJ emojis can be very long and take up to about 8 wchars, according to emoji-zwj-sequences. Guess length check isn't going to suffice. I wonder if this can be an early adopter of the Unicode handling work by @reli-msft .
The Windows 11 emoji set no longer supports the ninja cat sequences, so this issue may be considered moot now
Nah, we should still make sure we support these. Important emoji like "Woman whose skin is not yellow" are ZWJ-joined as well. :smile:
I can't set my icon to 🐱💻 but 🤖 works as expected. in terminal-preview.
Environment
Steps to reproduce
Set Icon property to a fancy zwj emoji.
Expected behavior
Icon should be the emoji.
Actual behavior
json doesn't validate