Repository navigation
v1.5.2
Emoji Width Fixes
This release fixes character width calculation for emoji with skin tones and flag sequences.
Fixes
-
Skin tone modifiers (U+1F3FB-U+1F3FF) now correctly zero-width
- Previously incorrectly included in double-width range
- Fixes cursor positioning for emoji like 👋🏻 👨🏽💻 🧑🏿🦱
-
Regional Indicators (U+1F1E6-U+1F1FF) now correctly double-width
- Range was missing U+1F1E6-U+1F1FF (extended from 0x1F1E5)
- Fixes cursor positioning for flag emoji like 🇨🇦 🇺🇸 🇯🇵
-
Split double-width range {0x1F3F7, 0x1F4FD}
- Now {0x1F3F7, 0x1F3FA} and {0x1F400, 0x1F4FD}
- Excludes skin tone modifiers from double-width
Impact
Terminal applications using utflite for cursor positioning will now correctly handle:
- Emoji with skin tone modifiers (👋🏻, 👨🏽💻)
- Flag emoji (🇨🇦, 🇺🇸, 🇬🇧)
- Mixed emoji content in text editors