[Qt-interest] include default font into application
Markus Franke
markus.franke at informatik.tu-chemnitz.de
Tue Mar 3 13:47:42 CET 2009
Zitat von Robin Helgelin <lobbin at gmail.com>:
> I think these will do the trick
>
> int QFontDatabase::addApplicationFont ( const QString & fileName ) [static]
> int QFontDatabase::addApplicationFontFromData ( const QByteArray &
> fontData ) [static]
Hmm...indeed this would solve my problem. However addApplicationFont()
always returns -1, nevermind which TTF file I pass to the function. On
the console I can see the following error message:
---snip---
FT_New_Face failed with index 0 : 2
---snap---
Any ideas?
Best Regards,
Markus
More information about the Qt-interest-old
mailing list