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

fonts.weight property doesn't work with fonts loaded by Fontloader

    XMLWordPrintable

Details

    Description

      Setting font.weight=Font.Thin or font.weight=Font.Light to a TextInput doesn't make a difference. Please check the attached example to reproduce it.

      Current behavior: both texts are looking the same
      Expected behavior: texts look different

      Notes: loading TextInput with loader later doesn't help, check main.qml

      Workaround:

      • Loading fonts from cpp (check main.cpp )
      • Using font.styleName (check main.qml) text1.font.styleName= "Thin" it is case sensitive.

      Attachments

        Issue Links

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              qtcomsupport Qt Support
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: