06-25-2012 12:26 PM
I have been struggling with non-latin characters in Cascades app and I think I know now what is the problem - only latin characters in default Cascades font. In order to correctly spell words in my language I will need to import font with more codepages.
Could you please give me some hints? I have tried http://qt-project.org/doc/qt-4.8/qfontdatabase.htm
06-25-2012 12:28 PM
06-25-2012 01:55 PM
Thanks Peter, I have tried following code:
QFontDatabase fdb; QStringList qlist = fdb.families(QFontDatabase::Latin); for (int i = 0; i < qlist.size(); ++i)
std::cout << qlist.at(i).toLocal8Bit().constData() << std::endl;
but it doesn't work - no error message, just quits with 'Navigator error'. This applies to both device and simulator.
Is it me (my code :-)) or..?
06-26-2012 03:50 PM
Seems there is currently no support for using custom fonts in Cascades.
Please request a feature in Issue Tracker: http://supportforums.blackberry.com/t5/Java-Develo
06-27-2012 06:02 PM
There are many fonts pre-installed on the device, and probably one or more have the glyphs that you need.
Try looking at http://qt-project.org/doc/qt-4.8/qfontdatabase.htm
l#families to list what's found on-board.
On the PlayBook, for example, I got the list here: http://pastebin.com/hsGuMVwF
Why does one need to go to a pastebin to find out about this kind of info? Shouldn't the list be in the docs?
06-27-2012 07:05 PM