I have a Qt-embedded application that I develop in OpenSuse 11.4 where I need to load a TTF font file. However when I call int QFontDatabase::addApplicationFont()
function, it's returning -1
.
Upon reading the documentation, I found out that adding application fonts on Unix/X11 platforms without fontconfig is currently not supported.
I checked through YaST whether I have fontconfig installed, and it is installed - but I don't think it's related coz I'm using a qt-embedded library. I'm thinking I gotta have fontconfig support qt-embedded library, but how do I do that?
Does fontconfig even support qt-embedded? Can anybody tell me what's going on?