×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Cordoba, Argentina
    Posts
    17

    List not changing Font Size nor Font Types

    Dear friends,
    I am trying to show a list of business indicators for my Mobile BI application, an indicator is a:
    Icon and a series of values, values must be aligned to create a sort of report.
    In SUN Java WT 2.5.2 emulator I can use a List (javax.​microedition.​lcdui public class List) for these propose and it shows just beautifully, but when testing in S40 5th edition Font Style works fine but Font Face and Font Size did not working at all
    Code:
    /* Pone la lista en los caracteres necesario MONOSPACE  */
    Font mf1 = Font.getFont (Font.FACE_MONOSPACE, Font.STYLE_PLAIN, Font.SIZE_SMALL);
    for (int i1=0;i1<biList.size();i1++) {
       biList.setFont (i1,mf1);
       if (i1==1) biList.setSelectedIndex(i1, true);
    }
    Is there a way to change font faces and sizes in a List in a Nokia S40?
    I am downloading S60 emulators to test in S60.
    Thanks so much for any help you could give me.
    Regards
    Sergio Mabres
    Prominente S.A.
    Argentina

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: List not changing Font Size nor Font Types

    Hi Sergio,

    from List setFont() method JavaDocs:
    An element's font is a hint, and the implementation may disregard the application's preferred font.
    So, actual implementations do not need to use the Font you specify, and could instead use a predefined one, regardless of the one you've chosen. So, on some phones it'll work, on some others it will not

    Pit

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    Cordoba, Argentina
    Posts
    17

    Re: List not changing Font Size nor Font Types

    Thanks so much!
    Sergio
    Sergio Mabres
    Prominente S.A.
    Argentina

Similar Threads

  1. how to change font size?
    By zeinab_b in forum Symbian C++
    Replies: 1
    Last Post: 2008-07-09, 14:17
  2. Changing font size in proportion of edwin size
    By Dipakbaviskar in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-02-09, 07:28
  3. Changing the font of a CAknDoubleGraphicStyleListBox
    By KevinD in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-11-04, 21:34
  4. changing font is CEikDirectoryTreeListBox
    By acvwieringen in forum Symbian User Interface
    Replies: 13
    Last Post: 2005-10-20, 16:01
  5. Series 60: Changing the font in a list box
    By MentalBlank in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-10-01, 08:33

Posting Permissions

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