Environment: Qt 5.5, Win7
I tried to insert into your QML-project custom font.
Qt Code:
FontLoader { id: customFont source: "f:/QT/MyProjects/TEST4/1.ttf" } TextArea { font.family: customFont.name }To copy to clipboard, switch view to plain text mode
I get the message: QML FontLoader: Cannot load font: "f:/QT/MyProjects/TEST4/1.ttf"
It turned out that this code loads fonts only from the network ( I checked it and it really works without problems )
Please tell me how to load fonts in qml from the disk.
Bookmarks