Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MP player name with special character appear blank on the player head. #2622

Closed
WillyB1337 opened this issue Nov 11, 2020 · 1 comment · Fixed by #2760
Closed

MP player name with special character appear blank on the player head. #2622

WillyB1337 opened this issue Nov 11, 2020 · 1 comment · Fixed by #2760

Comments

@WillyB1337
Copy link
Collaborator

image

@ohlidalp
Copy link
Member

ohlidalp commented Nov 14, 2020

Problem identified: RoR correctly keeps the nickname in utf8 'Français' but tries to render it as narrow-text, so the utf8 'ç' (0xC3 0xA7) (source) becomes 2 narrow text characters 'Ã' and '§' (source) but they end up as empty space because the're left out from the used fontdef (see "highcontrast_black" in file "resources/OgreCore/higcontrast.fontdef").

A complication is that "highcontrast_black" is a bitmap font, all characters are pre-rendered in texture "highcontrast_black.png". We have to either generate new texture and fontdef, or use actual font rendering to create the labels.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants