Discussion Board

Results 1 to 6 of 6

Thread: Canvas.text()

  1. #1
    Registered User ComplexT's Avatar
    Join Date
    Mar 2008
    Posts
    25
    Hi,

    When im using canva.text() i can print whatever i like onto the canvas but it doesnt look very appealing..

    how can i use another font for canvas.text??

    thanks

  2. #2
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Hi,

    See this article about PyS60 fonts.

    Hope that helps

  3. #3
    Registered User ComplexT's Avatar
    Join Date
    Mar 2008
    Posts
    25
    Code:
       canvas.text((35,60),  u'*****Main Menu*****', font= u'legend')
       canvas.text((35,100), u'*****Main Menu*****', font= u'normal')
       canvas.text((35,160), u'*****Main Menu*****', font= u'title')
       canvas.text((30,210), u'*****Main Menu*****', font= u'dense')
    these are all displaying the exact same!!!!

    am i missing something??

    edit... ** This does not work when the unicode u is in place. remove this and it works fine
    Last edited by ComplexT; 2008-05-26 at 21:08. Reason: fixed

  4. #4
    Super Contributor JOM's Avatar
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976
    Quote Originally Posted by ComplexT View Post
    these are all displaying the exact same!!!!
    am i missing something??
    You might be missing some font files. What is your device (2nd, 3rd) and what language variant it is == do you have Chinese or Indian etc. version? In my "English" version I can see some minor difference between fonts. Not big, but some.

    Btw you can also use flags, like bold and italics.

    Cheers,

    --jouni

  5. #5
    Registered User Sean94's Avatar
    Join Date
    Jul 2007
    Posts
    4
    Quote Originally Posted by ComplexT View Post
    ... edit... ** This does not work when the unicode u is in place. remove this and it works fine
    Actually, on mine, it only works with unicode font names.

  6. #6
    Regular Contributor miohtama's Avatar
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376
    Chinese phones lack certain fonts. Thus, there will be also problems if you send your application to China for Symbian certification.

    About advanced (wrapped) text rendering, see this:

    http://discussion.forum.nokia.com/fo...d.php?t=124666
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

Similar Threads

  1. Replies: 3
    Last Post: 2008-05-21, 12:40
  2. Replies: 9
    Last Post: 2008-05-20, 14:11
  3. problem with canvas.text and appuifw.text
    By luke14free in forum Python
    Replies: 1
    Last Post: 2006-11-01, 09:43
  4. Replies: 7
    Last Post: 2006-09-20, 20:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved