Re: [Qt-qml] Loading font from resource file not working on Symbian

2010-12-09 Thread Cornelius Hald
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(

Re: [Qt-qml] Loading font from resource file not working on Symbian

2010-12-08 Thread Adriano Rezende
On Wed, Dec 8, 2010 at 11:56 AM, Cornelius Hald wrote: > 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. Hi, I faced the same problem. It seems that application font

Re: [Qt-qml] Loading font from resource file not working on Symbian

2010-12-08 Thread Artur Souza (MoRpHeUz)
On Wed, Dec 8, 2010 at 7:39 AM, Cornelius Hald wrote: > in my QML UI I'm loading a font out of a resource file. On Linux and > Windows it seems to work, but on Symbian (and I think Maemo) I get the > following error: > > qrc:qml/MainWindow.qml:16:5: QML FontLoader: Cannot load font: > "qrc:qml/fon

Re: [Qt-qml] Loading font from resource file not working on Symbian

2010-12-08 Thread Juha Turunen
>> 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("> font file>"), id); > > Looks a bit scary to a Symbian noob like

Re: [Qt-qml] Loading font from resource file not working on Symbian

2010-12-08 Thread Cornelius Hald
Hi Juha, On Wed, 2010-12-08 at 13:52 +0200, Juha Turunen wrote: > I think the Symbian Qt port is just lacking functionality in this > department (don't know about Maemo). I just tried again on Maemo and the font is loaded correctly. So the problem really only seems to be Symbian. > You need to t

Re: [Qt-qml] Loading font from resource file not working on Symbian

2010-12-08 Thread Juha Turunen
Hi, I think the Symbian Qt port is just lacking functionality in this department (don't know about Maemo). You can work around this though with some Symbian specific code. Non-damaged souls and uninterested parties, please close your eyes for the rest of this e-mail. You need to tell the Symbian

[Qt-qml] Loading font from resource file not working on Symbian

2010-12-08 Thread Cornelius Hald
Hi, in my QML UI I'm loading a font out of a resource file. On Linux and Windows it seems to work, but on Symbian (and I think Maemo) I get the following error: qrc:qml/MainWindow.qml:16:5: QML FontLoader: Cannot load font: "qrc:qml/fonts/Ubuntu-R.ttf" This is with Qt 4.7.1. Is this a known bug

[Qt-qml] Loading font from resource file not working on Symbian

2010-12-08 Thread Cornelius Hald
Hi, in my QML UI I'm loading a font out of a resource file. On Linux and Windows it seems to work, but on Symbian (and I think Maemo) I get the following error: qrc:qml/MainWindow.qml:16:5: QML FontLoader: Cannot load font: "qrc:qml/fonts/Ubuntu-R.ttf" This is with Qt 4.7.1. Is this a known bug