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

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

XMLWordPrintable

      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.

        1. fontTest.tar.gz
          393 kB
          Qt Support
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes