tags:

views:

38

answers:

1

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 installation?

Thanks.

A: 

Hi.

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.

mosg