[Solved]Certain ttf files dont work with Qt, on ARM machine
-
Hi all,
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.
@QFile fontFile("katakana.ttf");@
@QFont font3("Katakana", 25, QFont::Bold, true);@
Any pointers are appreciated...
Thanks in advance.
-
Hi,
Are you sure you have the file installed at the right place when loading them ?
-
Seems all right, could you verify what QFontDatabase::families() return ?
-
-
Indeed, do you have FontConfig installed properly on your target ?
-
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 ?
-
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 :)
-
You're welcome
Then you need to add fontconfig to your build and also check that your Qt builds the support for it