[Solved]Certain ttf files dont work with Qt, on ARM machine
I am a beginner in Qt. Trying to develop an application to support multiple languages in Qt(on ARM machine). I tried loading some ttf files, which gave some junk display, while some gave BOXes, some gave correct and required output. Why does this happen? I haven't changed my application. Only the ttf files, their resource file names and family font names are changed, wherever needed.
@QFont font3("Katakana", 25, QFont::Bold, true);@
Any pointers are appreciated...
Thanks in advance.
Are you sure you have the file installed at the right place when loading them ?
Thanks for your reply...
I've installed them in /usr/local/Qt/lib/fonts, from where it takes font files...
May I know if that a wrong place to keep the font files...
Seems all right, could you verify what QFontDatabase::families() return ?
It returns all pre-installed fonts and those which I've installed for my application... But the application works with some of the fonts and not with some others... If the issue was with font file location, none of them should work,right???
Indeed, do you have FontConfig installed properly on your target ?
Can you please tell me how do I check it?? I've read about it while searching for a solution... But not clear about what to do with that.. Can you please explain its function?
First thing is to check that it's been compiled. Look at the summary after you called configure when cross-compiling Qt.
Then it depends on your target OS, which is it ?
OS used is Embedded Linux.
I'll verify if fontcofig has been compiled or not and let you know.
Can you please explain me what does it do?
Embedded Linux is a bit vast, is it debian, openembedded, a custom built system etc... ?
The "fontconfig site":http://www.freedesktop.org/wiki/Software/fontconfig/ covers that well :)
Thank you so much SGaist.
Its a custom-built one...
Then you need to add fontconfig to your build and also check that your Qt builds the support for it
:) thats done..it works fine...