Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
06-16-2012 02:48 PM - edited 06-17-2012 01:26 PM
On my BB10 Dev Alpha device the Qt fonts seem to be located in:
but my app is looking for them here:
How do I make my app look for them elsewhere? How can I set an environment variable to do this please?
Thanks in advance,
Solved! Go to Solution.
06-17-2012 01:28 PM - edited 06-17-2012 01:29 PM
I've tried the following additional code, but it is still saying it can't find the fonts in /base/usr/lib/qt4/fonts. I don't seem to be able to move them either (don't have enough permissions apparently).
QFontDatabase::removeAllApplicationFonts(); QString Fpath = "/base/usr/lib/qt4/lib/fonts/helvetica_80_75i.qpf"
06-18-2012 12:47 PM
to specify the font directory, add the following to your bar file
<env var="QT_QPA_FONTDIR" value="/usr/lib/qt4/lib/fonts"/>
This fixes the error from QFontDatabase on startup.
I noticed you are also attempting to use QtQui in your application, if you were not aware Cascades is a better option and has deeper integration with the system compared to QtQui, so take a look at it if you haven't done so already.
06-18-2012 05:35 PM
Thanks very much - that seems to have fixed it.
I'd like to use Cascades at some point, but for now I just want to get my app ported across and working in some form!
03-02-2013 05:17 AM - edited 03-02-2013 05:27 AM
I have to show the custom fonts only for some of the labels. I have keep my .ttf file in assets folder and used in Label as textStyle.fontFamily: "myfont.ttf". I have also declared
in bar file but though i'm not getting the result. Tell me if i'm wrong anywhere and how to solve this issue. Thanks in advance.