Results 1 to 2 of 2

Thread: S60 and "addFont" problem (Chinese characters)

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default S60 and "addFont" problem (Chinese characters)

    Hi,

    first what I try to achieve: I want (to keep it simple) display Chinese characters at a QLabel on my Music Express 5800 (Qt/S60). Unfortunately I have bought it in Europe, so there is no Chinese language support and you can't "update" it (as far as I know. Only for a fee in special shops...). So the installed font doesn't support the signs.

    So I thought using QFontDatabase::addApplicationFont() with an embedded font. It works local with "normal" Qt but not when building for my mobile phone target. The generated sisx package is to small, so that I guess, the font is not embedded. Also installing other fonts on "e:/resource/fonts" and use them don't work here.


    Do you have had a similar problem? How have you solved it?


    Thankful for every hint,

    Lykurg


    EDIT: Ok, the size is obviously big enough and the font is included, but still, I cant use it on the device. (Also when using addApplicationFont with a local ttf font)
    Last edited by Lykurg; 6th January 2010 at 20:25.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: S60 and "addFont" problem (Chinese characters)

    Damn! Why it is always the same? Got it now... (It was either a wrong file encoding or my first font was buggy...)

    So I just want use this post to call for a new sub forum called "Post here and wait for a miracle!". What's the use of it? You can post here your problem. Wait 2h and see if it get solved. Even if you have worked on that problem for days. If it get solved - like in my case right now - fell happy and forget about it (may be delete it). Otherwise just hit a button to move your post to the official forums to get real help...


    Lykurg

Similar Threads

  1. Replies: 0
    Last Post: 3rd December 2008, 11:58
  2. Replies: 3
    Last Post: 8th July 2008, 19:37
  3. "Treat wchar_t as Built-in Type" to "yes" link error
    By sungaoyong in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2008, 11:45
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.