Reputation: 11
I am developing an app in which I need to have a label with my custom fonts.
I can't find a solution to load a .ttf
file into qml. Any ideas?
Upvotes: 1
Views: 711
Reputation: 104
both solutions are wrong the proper one what i use is to create a weview and add fonts in the webview and then you can have the 2 way communication between the webview and the qml. Please take a look at the funkypigeon app when you crete inside text of the card.
Upvotes: 0
Reputation: 15057
Pressently with the cascades/Qt framework it is not supported,It will be supported in future releases. Plz refer cascades roadmaps https://developer.blackberry.com/cascades/download/roadmap/
Upvotes: 2
Reputation: 11754
It could be tricky getting it into QML, the recommended way for using fonts is: QFontDatabase::addApplicationFont but I'm unsure if that'll work on Blackberry as it does have issues on various platforms.
Upvotes: 0