×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    47

    large canvas text

    I want to use large text on a canvas (bigger than 'title' font)
    Tried this:
    Code:
    canvas.text( (2,24), u'Hello2', 0x008000, u'Nokia Hindi S6048b')
    Don't work - just get smaller text than doing:
    Code:
    canvas.text( (2,36), u'Hello3', 0x008000, 'title')
    So how do I write large bold text on a Canvas?

    Thanks
    Ian

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: large canvas text

    Try like this:
    Code:
    canvas.text( (2,24), u'Hello2', 0x008000, font=(u'Nokia Hindi S60',48,appuifw.STYLE_BOLD))

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    47

    Re: large canvas text

    Quote Originally Posted by bogdan.galiceanu View Post
    Try like this:
    Code:
    canvas.text( (2,24), u'Hello2', 0x008000, font=(u'Nokia Hindi S60',48,appuifw.STYLE_BOLD))

    You're a star! Thanks

Similar Threads

  1. Really need help..about canvas to read a large text file
    By thetoppy in forum Mobile Java General
    Replies: 2
    Last Post: 2008-03-07, 12:08
  2. A large number of text leads to App. closed: lcdui USER 130
    By iloveyiyi in forum Mobile Java General
    Replies: 3
    Last Post: 2007-10-09, 09:33
  3. Replies: 0
    Last Post: 2004-11-24, 18:49
  4. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46
  5. Display text on Canvas other than drawString
    By sengaste in forum Mobile Java General
    Replies: 1
    Last Post: 2003-04-15, 11:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •