I have a built-in Qt application that I am developing in OpenSuse 11.4 where I need to download a TTF font file. However, when I call the int QFontDatabase::addApplicationFont() function int QFontDatabase::addApplicationFont() , it returns -1 .
After reading the documentation, I found out that adding application fonts on Unix / X11 platforms without fontconfig is currently not supported.
I checked through YaST if I have a font config and it is installed - but I do not think that this is due to the fact that I use the qt-built-in library. I think I should have a built-in library with fontconfig support, but how do I do this?
Does fontconfig support qt-embedded? Can someone tell me what is going on?
Owen
source share