What is a good way to load an application specific font on Qt on Symbian?
Is it possible to use QFontDatabase::addApplicationFont() in Symbian? It seems to return -1 (error) even if the file exists?
If not, is there some alternative to this, apart from system-wide font开发者_C百科 installation?
Thanks.
I know that it's not the Qt way, but this can be realized with Symbian SDK like this:
TInt fontFileID;
TInt fontErr = CEikonEnv::Static()->ScreenDevice()->AddFile(
_L("c:\\system\\apps\\<APPID>\\customFont.ttf"),
fontFileID);
Here is the full link. Hope it helps.
精彩评论