[Qt-qml] Loading font from resource file not working on Symbian
Cornelius Hald
hald at icandy.de
Thu Dec 9 10:38:46 CET 2010
On Wed, 2010-12-08 at 16:33 +0200, Juha Turunen wrote:
> >> You need to tell the Symbian FBS (font and bitmap server) that it
> >> should add your font to the typeface store. You can do that with this
> >> bit of code:
> >>
> >> TInt id;
> >> CEikonEnv::Static()->ScreenDevice()->AddFile(_L("<path to your
> >> font file>"), id);
> >
> > Looks a bit scary to a Symbian noob like me :) Also I then can't load
> > the font from the resource file anymore. Still, if this part is missing
> > in Qt, it seems to be a reasonable way.
>
> Don't be afraid the water is warm.. :) Just flag it with Q_OS_SYMBIAN
> and #include <eikenv.h> and <w32std.h>
I'll give a try!
> > Thanks a lot for all this information. I'll give it a try as soon as
> > possible. BTW, do you know if there is a bug report about this already?
> > If not I think I should file one.
>
> I could dig a bit and try to find out where the problem is (I'm sure
> it'll get fixed faster that way) and file a report. I remember trying
> out the FontLoader on Symbian myself a while ago and it didn't work,
> so the problem is probably something else than just embedding the font
> into a Qt resource file (I can imagine getting that working might be
> hairy).
I would appreciate that very much. From reading the bug Adriano posted,
it sounds like quite a deep problem. Still I think it would be good to
have a QML bug and, if appropriate, make it depend on the mentioned Qt
bug.
Thanks :)
Conny
More information about the Qt-qml
mailing list