×

Discussion Board

Results 1 to 6 of 6

Thread: Canvas.text()

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    25

    Arrow Canvas.text()

    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
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Canvas.text()

    Hi,

    See this article about PyS60 fonts.

    Hope that helps

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    25

    Re: Canvas.text()

    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
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Canvas.text()

    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
    Join Date
    Jul 2007
    Posts
    4

    Re: Canvas.text()

    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
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Lightbulb Re: Canvas.text()

    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. converting latitude and longitude into x y
    By oyuky in forum Symbian
    Replies: 9
    Last Post: 2008-05-20, 14:11
  3. problem with canvas.text and appuifw.text
    By luke14free in forum Symbian
    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
  •  
×