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

some ttf fonts with embedded bitmaps are not displayed correctly with FreeType

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.1
    • 5.4.0 Beta
    • GUI: Font handling
    • None
    • 1edc7554deb557e3045076336e4b036109906db1

    Description

      QFontMetrics::height() is bogus for calibri font at 12px (and other sizes too, but not all), because both ascent and descent is 0.

      Bug reproducible with FreeType on Linux and on Windows.
      Not reproducible with Windows GDI.

      Attachments

        1. expected.png
          expected.png
          32 kB
        2. bug.qml
          0.4 kB
        3. bug.png
          bug.png
          42 kB
        For Gerrit Dashboard: QTBUG-42898
        # Subject Branch Project Status CR V

        Activity

          People

            iamsergio Sergio Martins
            iamsergio Sergio Martins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes