I am trying to use the FontLoader QML inline element to load a custom font for our application without success.
I tried using both OTF and TTF fonts with the same results.
Fonts are in the same directory as the project files. There is only one QML, the main one, where this FontLoader lives.
Here's how it should look:

Here is my code:
import QtQuick 2.0 Rectangle { width: 360 height: 360 FontLoader { id: cFontLoader source: "./fontlol.ttf" } Text { id: testText anchors.centerIn: parent text: "Hello Fonts!" font.family: cFontLoader.name font.pointSize: 32 } }
Andrew
source share