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
AlexB's answer is correct, and has cost me too long struggling why it didn't work.
For those wondering why their Roboto-Light font looks like Roboto-Bold, heres how to fix it:
FontLoader
{
id: robotoLight
source: "../fonts/Roboto/Roboto-Light.ttf"
}
Text
{
text: "This text is Roboto-Light"
font.family: robotoLight.name
font.weight: Font.Light // this is necessary or else it'll look like Roboto-Bold
}