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

Qml font.styleName not working on windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.5
    • GUI: Font handling
    • None
    • Windows

    Description

       
      I have font(ttf) file , which I load in Qml using FontLoader. This font is successfully loaded. But when I use font.styleName. It is not changing font style

      Text 
      {
        text: "Client Name" 
        height: 23 
        font.pointSize: 20
        font.family: myLoadedFont.name 
        font.styleName: "Medium Oblique" 
      }
      

      On Mac, I am able to use font.styleName, but on windows it is not working. Is this windows platform specific issue in qt fonts.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              livingontheedge iliyas nadaf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes