lethal-guitar / TvTextViewer

Full-screen text viewer tool with gamepad controls
MIT License
8 stars 9 forks source link

UTF-8 Encoding text is not shown. #15

Open british-choi opened 3 years ago

british-choi commented 3 years ago

UTF-8 encoded character is not shown. I want to display Korean character. The font is changed to a Korean font, but the characters are displayed as "?". Plz check it.

lethal-guitar commented 3 years ago

Thanks for reporting, I will look into it when I have time.

My guess is that an additional font is required which has all the necessary glyphs.. Something like Noto Sans

lethal-guitar commented 3 years ago

@british-choi do you have some example text that is not getting rendered correctly? That would be helpful for testing, thanks!

british-choi commented 3 years ago

@lethal-guitar I resolved issue. first, need font (base85 encoded) second, should be specified the Unicode range supported by the font. plz. refer below modifed source code https://github.com/british-choi/EmuELEC/blob/dev/packages/sx05re/tools/sysutils/TvTextViewer/imgui/imgui_draw.cpp

Thanks