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

Font positioning through kern OpenType feature interprets Y axis incorrectly (Mac only)

    XMLWordPrintable

    Details

    • Platform/s:
      macOS
    • Commits:
      7c93f1cf5d31cb1031fa52a0a610916e4f996457 (qt/qtbase/5.12) a0f145baab0080b335fa0a5be44472a3acda34e0 (qt/qtbase/5.13)

      Description

      The attached zip file figurato.zip contains an OpenType font called Figurato (available here) that uses the OpenType kern feature to stack numerals on top of each other. As you type e.g. 123 in this font, the 2 should be positioned below the 1, and the 3 should be positioned below the 2.

      To see this for yourself, install the font and then try this in TextEdit or another native Cocoa/CoreText application: switch to Figurato and type 123: the digits are stacked with 1 on top, 2 below 1, and 3 below 2.

      Now repeat this in a QTextEdit control or in the Rich Text Qt example app: the digits are stacked in the reverse order, with 1 on the bottom, 2 above 1, and 3 above 2.

      This problem affects the macOS version of Qt only: the Windows version interprets Y value in glyph positioning in the kern feature correctly.

        Attachments

        1. Figurato.zip
          10 kB
          Daniel Spreadbury

          Issue Links

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

            Activity

              People

              Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              dspreadbury Daniel Spreadbury
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes