How to use roboto thin font in qml

前端 未结 3 1431
遇见更好的自我
遇见更好的自我 2021-01-15 15:46

I am trying to use robot thin font in QML in Linux.I have install bold,thin and light fonts on ubuntu. Other programs like openoffice shows me only roboto. How do i get to u

3条回答
  •  盖世英雄少女心
    2021-01-15 16:33

    You can bundle the font files with your application and then use FontLoader component to load the version you want and use these in QML.

    This component also exist for QtQuick 1.0 as it was introduced in Qt 4.7 FontLoader

提交回复
热议问题