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

Details

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

    Description

      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.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-22652
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes