1

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?

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
Arul
  • 11
  • 2

3 Answers3

2

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/

Rakesh
  • 14,997
  • 13
  • 42
  • 62
0

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.

Nicholas Smith
  • 11,642
  • 6
  • 37
  • 55
0

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.

BelmonduS
  • 104
  • 3