chewing / chewing-editor

Cross platform chewing user phrase editor
https://chewing.im/
GNU General Public License v2.0
31 stars 52 forks source link

bopomofo symbols display problems with different input method used in terminal #125

Closed redfish-lee closed 8 years ago

redfish-lee commented 8 years ago

I've encounter a problem that when Chewing user phrase editor works fine at this exeucutution, maybe the bopomofo symbols couldn't display well at next execution. And there's no settings changed between these two executions. first execution

second execution

I'm not sure the problem is caused by input methods. Because I've test to use the same input methods for consecutive executions for more than 10 times and the problem just happened in random.

My environment

I think build and make works fine, but anyway these are what I've used to build through:

any comments is appreciated (:

david50407 commented 8 years ago

What is your Qt version? (Help -> About Qt in chewing editor.)

BarneyCw commented 8 years ago

I also use Ubuntu 14.04 and I've encounter the same problem as yours. I solved by : " QT_HARFBUZZ=old ./chewing-editor "

Ref: https://github.com/chewing/chewing-editor/issues/71

redfish-lee commented 8 years ago

$ QT_HARFBUZZ=old ./chewing-editor works!

via

https://bugs.archlinux.org/task/38355 http://doc.qt.io/qt-5/configure-options.html

Qt5 includes both the old harfbuzz (harfbuzz.old) and the new harfbuzz. Configure with -qt-harfbuzz or -system-harfbuzz options.

However, -no-harfbuzz can be set at runtime by setting QT_HARFBUZZ environment variable to old and that's the solution @BarneyCw suggested.

Thanks a lot!