catmasik
14th July 2015, 11:39
Environment: Qt 5.5, Win7
I tried to insert into your QML-project custom font.
FontLoader {
id: customFont
source: "f:/QT/MyProjects/TEST4/1.ttf"
}
TextArea {
font.family: customFont.name
}
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.
I tried to insert into your QML-project custom font.
FontLoader {
id: customFont
source: "f:/QT/MyProjects/TEST4/1.ttf"
}
TextArea {
font.family: customFont.name
}
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.