XUnity.AutoTranslator icon indicating copy to clipboard operation
XUnity.AutoTranslator copied to clipboard

Cyrillic font issue

Open BreadDain opened this issue 4 years ago • 1 comments

Was trying to translate a game which natively uses Liberation Sans font and it appeared that certain capital cyrillic letters are getting replaced with squares. I contacted developer to check if this is font-related issue, but it appeared that font is supporting all letters fine, at least they appeared good in Unity editor. Also this issue doesn't appear in unmodified client when same phrases are put in a textbox. Another note is that only specific letters are affected, and those are not exactly the same letters that are unique for cyrillic languages, some of them appear to be fine so they are only partially broken. I searched for same issues in bugtracker and found several results that suggested trying to replace fonts. It did fix the issue, although some UI elements disappeared due to resize and application always crashed if I tried to do this with Liberation Sans. According the fact that only certain specific letters were broken and modification couldn't replace to one specific font makes me think that it may be this project issue.

Unity [2019.4.16f1]

BreadDain avatar Apr 15 '21 09:04 BreadDain

TextMesh Pro (TMP) font replacement has always been a massive PITA.

Not sure what to make of it though, if the developer say they are built into the font.

As far as I am aware LiberationSans SDF is actually one of the default fonts that gets installed when you the install the various TMP packages in the Unity Editor. I am not confident that includes all characters, though. But it could also differ from version to version.

But I am somewhat confident that there must be something wrong with the said font if the translations appear properly in the translation file, so I am not sure what to do about this.

gravydevsupreme avatar Apr 18 '21 06:04 gravydevsupreme