Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
FreeType police on arm
I'm working on an arm platform with library Qt 4.6.3.
The final custumer request that the usage of Arial font.
My problem is : I can't generate or use arial font of any type.
If I compile my Qt library with ttf support (-qt-freetype option or -system-freetype) the software crash as soon as I try to load/use ttf font.
If I compile my Qt library with no ttf support, the software don't crash, but of course I could not load my font.
I also try to compile the makeqpf tool (there is few documentation about this tool by the way), I could only compile it for arm platform (perhaps it's normal) but I only be able to generate qpf2 file with huge font (size 100 px or more!). If I try to generate normal font, say a size of 20, the makeqpf software never end and nothing is generated.
Note 1 : I found these closed bug: http://bugreports.qt.nokia.com/browse/QTBUG-13441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs
Note 2 : I use the libfreetype.so.6.3.15
My question is : what should I do to use the Arial font?
-> Generate qpf2 on another platform and use it on arm?
-> Generate the old fashion qpf (not qpf2) file?
-> Is there any patch for the freetype usage?
L.MCH last edited by
have you already tried using the method suggested by "吴琼":http://bugreports.qt.nokia.com/browse/QTBUG-13441?focusedCommentId=133766&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133766 ?
I.e using "-fn somefont.ttf" in the application's command line parameters ?
Yes, I try to launch the application with the fn option, with the same effect that calling the font in the code or in a style sheet file : just crashing the application.
L.MCH last edited by
Uhm! So it must be something else, maybe something related to font management like "this":http://bugreports.qt.nokia.com/browse/QTBUG-13395 ?
The bug description says "QLineEdit dies in its constructor" but the cause is an alignment error in the Harfbuzz library that happens with specific fonts.
In the related comments look at what Oleksandr Tymoshenko says "here":http://bugreports.qt.nokia.com/browse/QTBUG-13395?focusedCommentId=132139&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-132139.
It looks like the you can fix it "this way":http://bugreports.qt.nokia.com/browse/QTBUG-13395?focusedCommentId=133377&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133377 or else you can try switching to Qt 4.7.2 where they says the bug is fixed.
Thanks for your reply. I will try to fix it next week!