How to use roboto thin font in qml

前端 未结 3 1417
遇见更好的自我
遇见更好的自我 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:47

    FontLoader will solve the issue for Light Roboto but not for Thin as it's not a sported weight. Remember to call font.weight: Font.Light in the text elements were you want to use Light weight.

    You will need to repackage the Roboto-thin.ttf as a new font and then import it back with FontLoader, (no need for the font.weight: Font.Light call in this case)

提交回复
热议问题