开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜