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.
11-17-2011 05:49 AM
Solved! Go to Solution.
11-17-2011 02:36 PM
I suspect you did not specify a proper path to your ttf/otf. How does your bar-descriptor source look like for your font asset?
And what path do you specify for bbutil_load_font?
11-17-2011 06:12 PM
In my case, I loaded the font as a normal resource. In my bar-descriptor.xml file, the reference to the font is as follows:
and the line of code i'm using to load the font is this one:
_font = bbutil_load_font("/app/native/BPdotsSquare.otf", 15, dpi);
After calling the bbutil_load_font function, I get the error that superdirt described "Error loading font.". I dug a little inside the bbutil_load_font function, and the point where it fails is when calling the FT_New_Face function.
I don't know if this is relevant or not, but I'm trying to run this on the Simulator.
11-18-2011 03:46 AM
Line in bar-descriptor:
Code for loading:
fontbig = bbutil_load_font("/app/native/BILLH___.TTF", 35, dpi);
This gives me the error:
Error loading font /app/native/BILLH___.TTF