开发者

What is a good way to load an application specific font on Qt on Symbian?

开发者 https://www.devze.com 2022-12-14 12:36 出处:网络
Is it possible to use QFontDatabase::addApplicationFont() in Symbian? It seems to return -1 (error) even if the file exists?

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

精彩评论

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

关注公众号