buggins / dlangui

Cross Platform GUI for D programming language
Boost Software License 1.0
815 stars 121 forks source link

Add CJK support #584

Open dangbinghoo opened 5 years ago

dangbinghoo commented 5 years ago

dlangui right now can't display CJK or non-latin text correctly, change the UI font to CJK compatible font also can't resolve the problem.

please add CJK support. Thanks!

zekexiao commented 2 years ago

0.10 Still not working with CJK

GrimMaple commented 2 years ago

I have checked just now, dlangui allows entering Japanese characters, but it doesn't display them (should be fixable) Can you elaborate a little bit more on what's wrong with CJK? Are they allowed to be enterd, but can be shown? Or is there something else wrong with this?

GrimMaple commented 2 years ago

I have just tested my development version on Windows, it displays Japanese characters just fine after setting appropriate font. Can you elaborate on what system you use etc? Img

zekexiao commented 2 years ago

Linux Mint 21. can input but input method(fcitx5) not in a right place, and display incorrect. image

GrimMaple commented 2 years ago

Hello again! I booted up my Manjaro KDE Laptop, and I was able to see Japanese characters no problem -- I just had to set up the font to a compatible one. In my case, it was "Droid Sans". I don't know if that font is available on Linux Mint.

I'm not sure what more I could do to support CJK. Changing default font to something that supports CJK seems like a reasonable solution, but I'm afraid it's not a portable solution at all~

Maybe you can use themes to setup the default font if you really need to?

image

zekexiao commented 1 year ago

I switch to Windows and set CJK fonts is display well. but looks like IME not supported, I create a issues here #641