Quote:
Originally Posted by [ru]In1ernal Error
Hello!
My goal is to add ****************** ( https://www.compart.com/en/unicode/U+1F568) or similar icon to the nickname on the right.
I dunno why, but utf8 characters are not being displayed correctly in hud/chat.
Tried w/wo bom (np++), different utf8 icons, none of them were rendered right.
Tried to upload your "data/l4d2_voiceviewer.txt" as is, but no luck again.
I even thought what if is unicode version used by engine is too old and those symbols do not exist there.
Any ideas?
UPD:
these are working: https://steamcommunity.com/sharedfil...?id=2165546519
|
I think it has to do with the fonts used by the client(OS fonts).
For me, it displays correctly 🔊(U+1F50A).
plugin default: l4d2_voiceviewer.txt
You may want to check your in-game console for errors like this:
Code:
Couldn't find custom font file 'resource/linux_fonts/DejaVuSans.ttf'
Couldn't find custom font file 'resource/linux_fonts/DejaVuSans-Bold.ttf'
Couldn't find custom font file 'resource/linux_fonts/DejaVuSans-BoldOblique.ttf'
Couldn't find custom font file 'resource/linux_fonts/DejaVuSans-Oblique.ttf'
Couldn't find custom font file 'resource/linux_fonts/LiberationSans-Regular.ttf'
Couldn't find custom font file 'resource/linux_fonts/LiberationSans-Bold.ttf'
Couldn't find custom font file 'resource/linux_fonts/LiberationMono-Regular.ttf'
This is my other OS (use linux version) and the emoji won't display correctly until I move the *ttf files.
Code:
./Left 4 Dead 2/left4dead2/resource/linux_fonts/DejaVuSans.ttf
./Left 4 Dead 2/left4dead2/resource/linux_fonts/DejaVuSans-Bold.ttf
./Left 4 Dead 2/left4dead2/resource/linux_fonts/LiberationMono-Regular.ttf
./Left 4 Dead 2/left4dead2/resource/linux_fonts/DejaVuSans-Oblique.ttf
./Left 4 Dead 2/left4dead2/resource/linux_fonts/DejaVuSans-BoldOblique.ttf
./Left 4 Dead 2/left4dead2/resource/linux_fonts/LiberationSans-Regular.ttf
./Left 4 Dead 2/left4dead2/resource/linux_fonts/LiberationSans-Bold.ttf
Attach Files(img)
l4d2_voiceviewer.txt
Code:
🔊 正在说话的玩家 🔊 | 🕨 🕨 🕨 🕨
U+1F568 doesn't display correctly for me, even in the browser or terminal, I think you should change to some other Unicode character, since it's unlikely that players specifically configure the font file.