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

QFontDialog sometimes incorrectly errors on setCurrentFont/getFont

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.0
    • None
    • fedoracore 6.6.7-200.fc39.x86_64
    • Linux/Wayland

    Description

      Using QFontDialog, sometimes when setting current font (either via setCurrentFont or getFont,

      an error is reported (application output in Qt Creator):

      QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0

      The font is created via:

      QFont font;

      font.fromString(QString("Nimbus Roman,36,-1,5,700,0,0,0,0,0,0,0,0,0,0,1")

      Not all fonts fail, just some. The font string is obtained from an existing font via

      font.toString()

      QFontDialog does not select a font in this case even though the font family is selectable.

      Attachments

        1. reproduce.txt
          0.9 kB
        2. reproduce-1.txt
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            dabbsil D B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes