Environment: Qt 5.5, Win7

I tried to insert into your QML-project custom font.

Qt Code:
  1. FontLoader {
  2. id: customFont
  3. source: "f:/QT/MyProjects/TEST4/1.ttf"
  4. }
  5.  
  6. TextArea {
  7. font.family: customFont.name
  8. }
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.