chewing / chewing-editor

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

Cannot display bopomofo correctly in Qt5 < v5.3.0 #7

Closed czchen closed 10 years ago

czchen commented 10 years ago

Bopomofo in userphrase list is not displayed correctly.

czchen commented 10 years ago

Ref: http://comments.gmane.org/gmane.comp.fonts.fontconfig/4997

czchen commented 10 years ago

Use the following code to force using TW-MOE-Std-Kai in main, but bopomofo still cannot display correctly.

QFont newFont("TW-MOE-Std-Kai", 12, 0, true);
QApplication::setFont(newFont);
czchen commented 10 years ago

Ref: http://qt-project.org/doc/qt-5.0/qtgui/qfontdatabase.html

czchen commented 10 years ago

Run with QT_HARFBUZZ=old can solve the problem.

Ref: https://bugreports.qt-project.org/browse/QTBUG-36066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel

czchen commented 10 years ago

Under review. https://codereview.qt-project.org/80309

czchen commented 10 years ago

Fixed in https://codereview.qt-project.org/80505