[Interest] FontLoader - Multiple variations of the same font family
Nuno Santos
nunosantos at imaginando.pt
Mon Jan 8 12:22:02 CET 2018
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 <nunosantos at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180108/f683dd82/attachment.html>
More information about the Interest
mailing list