Search Issue Tracker

Fixed

Fixed in 2022.2.16f1, 2023.1.0b11, 2023.2.0a6

Votes

0

Found in

2021.3.16f1

2022.2.1f1

2023.1.0a24

2023.2.0a1

Issue ID

UUM-22663

Regression

No

FontAsset.HasCharacter overloads are missing UTF32 support

-

Reproduction steps
1. Open the attached user's project "TextMeshPro-UTF32.zip"
2. Observe the compile error:
error CS1503: Argument 1: cannot convert from 'int' to 'char' for font.HasCharacter(character: 0x1F44B, searchFallbacks: true)

Expected: for TMP HasCharacter to have a way to check Unicode characters with searchFallbacks
Actual: TMP_FontAsset.HasCharacter overloads are missing UTF32 support

Reproducible on: TMP 3.0.6 (2020.3.41f1, 2021.3.16f1, 2022.2.2f1, 2023.1.0a24)

  1. Resolution Note (fix version 2023.1.0b11):

    FontAsset.HasCharacter now supports UTF32

  2. Resolution Note (fix version 2022.2.16f1):

    FontAsset.HasCharacter now supports UTF32

Add comment

Log in to post comment