×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    41

    Wink Change Color font

    hi ppl,
    I want change color of the font on my application and the size too, someone known good tutorial to teach-me.

    thk

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Change Color font

    Hi stein,

    Color can be changed by calling method SetColor of Graphics class. The size is changed by providing proper arguments to getFont method of Font class:

    public static Font getFont(int face,
    int style,
    int size)

    MIDP Terminal Emulation, Part 3: Custom Fonts for MIDP
    http://developers.sun.com/mobility/m...termemulator3/

    Below is an article about custom fonts to help you as well.

    Kind regards
    Juarez Alvares Barbosa Junior - Brazil

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    41

    Re: Change Color font

    hi, i have look the link that you give but i can´t understand.

    It's possible change color and size of letter on class extends midlet? if yes you could give me a example?

    thy:

  4. #4
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Change Color font

    well if u need exact font and color u can use polish for this, it support adding font package into it, then u can choose color, font style and many things.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    41

    Re: Change Color font

    well, i´m using midp 1.0 and when isue the class Graphic with the method setColor or setFont give me error and emulator shutdown.
    Could someone give-me a link to a tutorial or a small example.

    ty.....

  6. #6
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Change Color font

    Hi stein,

    It makes no sense, in MIDP 1.0 you have the methods below:

    Graphics
    void public void setColor (int RGB)
    void public void setColor (int red, int green, int blue)

    and also:

    Font
    Font public static Font getFont (int face, int style, int size)

    Check JSR 37 - MIDP 1.0 in case you have any doubts. And also make sure your development environment (IDE, SDKs, etc) are installed properly.

    Kind regards,
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. [announce] Google Directions via PyS60
    By neil.young in forum Symbian
    Replies: 29
    Last Post: 2008-02-15, 10:55
  2. Displayable change (again)
    By Wontar in forum Mobile Java General
    Replies: 0
    Last Post: 2007-01-13, 16:14
  3. Replies: 0
    Last Post: 2003-10-06, 12:28
  4. how to change ircomm to discover device in time-slot 2
    By skylakezzz in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-10-06, 12:27
  5. change focus
    By f_alonso_1 in forum Symbian
    Replies: 0
    Last Post: 2003-07-17, 13:34

Posting Permissions

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