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

Fractional font size is displayed incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2, 6.2.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu Hirsute
    • Platform/s:
      Linux/X11

      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

        For Gerrit Dashboard: QTBUG-92006
        # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change