Search Issue Tracker
Fixed
Fixed in 6000.0.49f1, 6000.1.3f1, 6000.2.0a11
Votes
0
Found in
6000.0.46f1
6000.1.0b14
6000.2.0a8
Issue ID
UUM-102582
Regression
No
HasCharacters() returns false when checking Emojis using surrogate pairs, despite characters being present in the Font Asset
Reproduction steps:
1. Open the attached “IN-98666.zip” project
2. Open the “Main” Scene (Assets/Scenes)
3. From the Project window, select “NotoColorEmoji Color.asset” (Assets/TextMesh Pro/Resources/Fonts & Materials)
4. In the Inspector, go to the Character Table tab
5. Observe that the emojis are present in this Font Asset (specifically \U0001F34B)
6. Enter Play mode
7. Observe the Console
Expected result: “Text ExampleTextNotoEmoji with font asset NotoColorEmoji Color supports emoji 🍋: True” log is visible
Actual result: “Text ExampleTextNotoEmoji with font asset NotoColorEmoji Color supports emoji 🍋: False” log is visible
Reproducible with: 6000.0.46f1, 6000.1.0b14, 6000.2.0a8
Couldn’t test with: 2022.3.61f1 (error CS0117: 'TMP_Settings' does not contain a definition for 'emojiFallbackTextAssets')
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environment tested
link to forum: https://discussions.unity.com/t/check-if-an-emoji-is-supported-by-the-font-does-not-work/1618642/8
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 6000.2.0a11):
Fixed HasCharacters and TryAddCharacters for utf32
Resolution Note (fix version 6000.1.3f1):
Fixed HasCharacters and TryAddCharacters for utf32
Resolution Note (fix version 6000.0.49f1):
Fixed HasCharacters and TryAddCharacters for utf32