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

Qt fonts don't work right

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 5.12.2
    • Fix Version/s: None
    • Component/s: GUI: Text handling
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Code:

      QFont font("Arial",12);
      QString txt = "Yazı";

      qDebug()<<"################";

      QFontMetrics fm(font);
      width = fm.width(txt);
      qDebug()<<"Normal Width: "<<width;

      font.setBold(true);

      QFontMetrics fm2(font);
      width = fm2.width(txt);
      qDebug()<<"Bold Width: "<<width;

      qDebug()<<"################";

      Output:

      ################
      Normal Width: 26
      Bold Width: 25
      ################

        Attachments

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

          Activity

            People

            • Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              mehmetkarlik Mehmet Karlık
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes