Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70738

Thai Font Vowel issue on WinCE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.2.1
    • GUI: Font handling
    • None
    • WINCE, Windows Embedded 2013
    • Windows

    Description

      Hi im using QT 5.2.1 on Windows CE and i'm having this issue with Thai fonts (see issue1.png).

       

      I found the following bug report at 

      https://bugreports.qt.io/browse/QTBUG-33071?jql=text%20~%20%22thai%22 

       

      I have applied this fix mentioned there in the

        QWindowsFontEngine::boundingBox(glyph_t glyph, const QTransform &t);

      function and i get the following (issue2.png).

       

      At this point i have no clue on how to adjust this so the characters go down.

      I tried to increase the y value, but it seems that at some point the characters disappear, which leaves me to believe the top symbols (vowels i think) are actually printed on a different line??

       

      I have little experience with fonts and i do not speak Thai,, any help would be greatly appreciated.

       

      PS: the issue seems to be in 

      qtbase/src/plugins/platforms/windows/qwindowsfontengine.cpp

      in the QWindowsFontEngine::boundingBox(glyph_t glyph, const QTransform &t); function.

      I have added the specific file to attachments as well, in case you cannot find it.

       

       

       

      Attachments

        1. issue1.png
          issue1.png
          13 kB
        2. issue2.bmp
          issue2.bmp
          474 kB
        3. qwindowsfontengine.cpp
          48 kB
        4. qwindowsfontengine.h
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            rick1992 rick1992
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes