Hey,

I have found the answer on this Stackoverflow post:

https://stackoverflow.com/questions/45242560/matching-a-font-style-exactly-with-qml
 
<https://stackoverflow.com/questions/45242560/matching-a-font-style-exactly-with-qml>

I think Qt documentation should state this. It is hard to guess!

Regards,

Nuno

> On 8 Jan 2018, at 10:51, Nuno Santos <nunosan...@imaginando.pt> wrote:
> 
> Hi,
> 
> I’m trying to use multiple FontLoader instances to load multiple variations 
> of the same font family since we can only specify a file on the font loader 
> source.
> 
> FontLoader {
>    id: mainFont
>    source: "qrc:/fonts/OpenSans-Regular.ttf"
> }
> 
> FontLoader {
>    id: mainFontLight
>    source: "qrc:/fonts/OpenSans-Light.ttf"
> }
> 
> However, when using mainFontLight as font, the font appears as mainFont.
> 
> Is there any way of loading multiple variations of the same font using Qt? 
> 
> Thanks!
> 
> Regards,
> 
> Nuno
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to