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

QFont::setStretch() doesn't work properly for biger font sizes

    XMLWordPrintable

Details

    • e20f4d966e1b7e26feadbc1a5410f71a9271ed99 (qt/qtbase/5.12)

    Description

      The setStretch() method has strange affect on biger font sizes (~ above 47 pts.). In that cases the font itself is not stretched but text area is fit to stretched font. It means that QFont::UltraCondensed causes text lettters overlapsed and QFont::UltraExpanded shows big spaces between text letters (see attachment - example on Arial font).

      The problem exists for all fonts.

      I modified Font Sampler project to present the issue. The program, screenshots and source code attached.

      Attachments

        1. Arial_tests.zip
          120 kB
        2. fontsampler.exe
          125 kB
        3. fontsampler.zip
          1.62 MB
        4. overlap.png
          overlap.png
          32 kB
        5. test_Qt5.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jurynraf Rafal Juryniec (Inactive)
            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes