threedeyes / qthaikuplugins

Qt5 plugins for haiku platform
GNU General Public License v3.0
13 stars 4 forks source link

Non-Roman UI strings are blank in Japanese locale #11

Open tsundoku39 opened 4 years ago

tsundoku39 commented 4 years ago

When the system language is set to Japanese, most of the UI strings in Qt applications appear blank. Roman text (like keyboard shortcuts) is still displayed. qtnotext

threedeyes commented 4 years ago

I tested the Japanese locale. Everything works perfectly. Check your system font settings. Try choose Noto Sans CJK JP fonts by default (see screenshot). screenshot22

tsundoku39 commented 4 years ago

I see what you mean, but there is still a problem. Native Haiku applications are able to use fallback fonts to substitute missing glyphs, so Qt applications should be able to do this too instead of relying on one font containing everything. See:

https://git.haiku-os.org/haiku/tree/src/servers/app/font/GlyphLayoutEngine.h

lonemadmax commented 3 months ago

Maybe add a bunch of other families to https://github.com/threedeyes/qthaikuplugins/blob/f74f391faa55fea110f95b93e53930582f9994b7/platforms/qhaikuplatform/haiku/qhaikuplatformfontdatabase.cpp#L124?