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

Fractional font size is displayed incorrectly

    XMLWordPrintable

Details

    • Linux/X11
    • ae62122a8f (qt/qtdeclarative/dev) b8c5634911 (qt/qtdeclarative/6.3) 96e6dc253a (qt/qtdeclarative/6.2)

    Description

      When using fractional font sizes like 10.5, 11.5 etc the text gets elided even when not needed, the font size increases as well. I tracked it down to fontInfo not returning proper values on those controls. It seems that the control calculates the needed space with the proper font size and after that the text gets elided because it is rendered with a bigger font size.

      It happens when A Text item is set on a Control.contentItem. Like used in the default RadioButton in QtQuick2.

      I added a sample QML file which shows the issue.

      Regards Usarin Heininga

      Attachments

        1. main.qml
          1 kB
          Usarin Heininga
        For Gerrit Dashboard: QTBUG-92006
        # Subject Branch Project Status CR V

        Activity

          People

            hurlevent Oliver Eftevaag
            usarinheininga Usarin Heininga
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews