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

Fail to render unicode text not contained in the current font with QFont::PreferNoHinting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.6
    • GUI: Font handling
    • None
    • Window 7 and Vista

      Hello,

      Qt widdget and QTextEdit failed to render unicode character not contained in the current font.

      I add an image to show the problem:
      1. I write some japanese characters which aren't in the current font (here MS Shell Dlg 2) without hinting (top image) -> all is ok
      2. I select one of the character and I add to the char format fmt.setFontHintingPreference(QFont::PreferNoHinting); -> the character (image bottom) seems to become enorm (height: ~100px x width: > 2000px).

      It seems that with no hinting Qt is no more supporting the unicode and I have no workaround to solve mixed unicode text (text which needs more than one font to be drawn) in widget.

      I report the problem in Qt 4.8.6 but the problem could be too into Qt 5.x.

      Regards,
      Bilbon.

        1. Qt_failing_hinting.png
          103 kB
          Alexandre Desboeufs
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            bilbon Alexandre Desboeufs
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes