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

QGlyphRun doesn't contain positions for all Glyphs for some fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.7.0
    • GUI: Text handling
    • None
    • Desktop Windows 10, QtCreator MSVC2015_64bit

    Description

      Using a QTextLayout to perform low-level glyph positioning with some fonts ("Constantia" on windows for example) results in an incomplete GlyphRun.positions making it impossible to correctly layout text. Occurs when configuring a QTextLine with setLineWidth(fontMetric.width) and setNumColumns

      GlyphRun positions returns less positions than string characters.

      I have attached a barebones project which replicates the issue.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            baz Seb Horsewell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes