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

QFont setFixedPitch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • 4.8.0
    • 4.7.0
    • GUI: Font handling
    • None
    • Windows 7

    Description

      When setting fixed pitch to true on a proportional font, it doesn't seem to yeild the same bounding rectangle for strings of the same length.

      QFont dejavu("DejaVu Sans");
      dejavu.setKerning(false);
      dejavu.setFixedPitch(true);
      QFontMetrics fm(dejaVu);
      QRect r1 = fm.boundingRect("Test ");
      QRect r2 = fm.boundingRect("Test0");
      

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              steno Jon Mullen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes