Results 1 to 2 of 2

Thread: QT Simplified Chinese Support Problem (font size not consistent)

  1. #1

    Default QT Simplified Chinese Support Problem (font size not consistent)

    I am localizing our product to different languages. For "Simplified Chinese", some Chinese words are displayed in different font size from other words. A screenshot can be viewed here: http://66.160.133.67/qtproblem.jpg

    I am using QT Linguist to edit the <app>_zh.ts file to generate the <app>_zh.qm file. These Chinese characters are entered using the same Windows Chinese text input engine.

    This font size problem does not happen to Korean or Japanese language. Does anyone know how to resolve this? thanks much in advance,

    Steve

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT Simplified Chinese Support Problem (font size not consistent)

    try setting the same font size yourself, like:
    Qt Code:
    1. if ((language == "zh-chs") || (language == "zh-cn")) // Chinese (Simplified) - SimSun
    2. {
    3. m_StandardFont = QFont(m_Fonts.value(fntSimChinese), 10, QFont::Normal);
    4. }
    5. else if ((language == "zh-cht") || (language == "zh-tw")) // Chinese (Traditional) - Mingliu
    6. {
    7. m_StandardFont = QFont(m_Fonts.value(fntTradChinese), 10, QFont::Normal);
    8. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Font size calculation when painting in a QImage
    By Ishark in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2007, 23:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.