Suggestion: Font Asset Creator should be able to interpret escaped Unicode

I like the feature that the Font Asset Creator reads the translation files and determines which characters are needed all by himself. The problem is that my files have escape Unicode characters (like \u767b\u9304) which the Creator doesn’t interpret correctly (Unity does though).

Is there currently any way to fix this problem or is it planned to support this?

Just to confirm I understand correctly.

Instead of your source file containing “ABC 登錄”, it contains “ABC \u767b\u9304”. Is that correct?

and the issue is that the Font Asset Creator includes the individual characters of the escape sequence.

Since this was a fairly simple feature to add, I went ahead and added it.

Using following text in the source text file: “A\u767b\u9304\U0001F150 A line of text. \u03a9”, we get the correct parsing of both \u for UTF16 and \U for UTF32.

This change will be included in the next release of the TMP package for Unity 2018.3 which will be version 1.4.0-preview.2.

1 Like