11-16-2012 08:02 AM
11-16-2012 09:19 AM
It's a standard font so I assume its available on any BB10 device. Im more looking to load in things from dafont.com
11-21-2012 10:12 AM
11-21-2012 10:56 AM
In Qt you can load any .otf or .ttf font file and use it.
11-21-2012 10:59 AM
Thanks, got an example code or can you point me to the correct place in the docs?
11-21-2012 11:14 AM
I've submitted an example to different fonts in Qt to github but it is not approved yet, for now you can see it here https://github.com/BGmot/Cascades-Community-Sample
I am pretty sure if you drop your custom font files into /usr/fonts/font_repository/ or whatever your fonts folder on your device is Qt will pick it up as available font (sorry did not actually test).
11-21-2012 11:30 AM - edited 11-21-2012 11:32 AM
Thank you for your help BGmot. But how exactly would this embed the font into my application? As far as I see, this only loads fonts installed on the device. I would like the font to be embedded in the application, transparent to user. Besides, you created Native C++ application and I would need to use this with cascades. Could you create example for that please? Including the usage of this font with QML if possible. What I mean is changing the font family of a QML generated label in C++ for example..
Thank you very much!
11-21-2012 11:49 AM
11-21-2012 12:26 PM
11-21-2012 01:07 PM
@BGmot I've downloaded your example from kit but am having trouble getting it to work:
I'm having problems with step 10, I add the following in to -l but still no luck, any ideas?
cpp, QtCore, QtGui