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

Setting a horizontal stretch for a font doesn't work with the DirectWrite font engine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.0, 5.5.1, 5.6.0
    • GUI: Font handling
    • None
    • Windows 7

      Calling QFont::setStretch has no effect when the DirectWrite font engine is in use.

      To reproduce:
      1. Build and run the attached test app.
      2. Click on the 'stretched' checkbox and observe that the text stretched correctly using the GDI font engine.
      3. Click on 'DirectWrite'. Notice that the stretch is no longer present.

      From looking at the DirectWrite API documentation, arbitrary font scaling doesn't seem to be supported, so perhaps Qt should just fall back to the old GDI font engine if a stretch is specified.

        1. directwrite-test.zip
          3 kB
          James Larcombe
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            jlarcombe James Larcombe
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes