×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    37

    EAknLogicalFontPrimaryFont and the primary "Settings" list box font

    Hello

    I am looking for a way to get the primary CFont* used in the standard "Settings" list boxes throughout the OS (similary to http://www.developer.nokia.com/Commu...custom-listbox)

    In the S60 3rd ed FP1 emulator, the font return by
    Code:
    AknLayoutUtils::FontFromId( EAknLogicalFontPrimaryFont, NULL )
    is close enough to the Settings list box font, it is just a bit bigger (182 twips vs. 156 twips for the Settings list box font).
    Should I hardcode the 156 twips in the application to get the correct font, or is there a constant I could use, or a better way to get the desired CFont*?

    Thanks in advance for any comment or suggestion.
    Sergiogiogio

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: EAknLogicalFontPrimaryFont and the primary "Settings" list box font

    Basically you should never hard code anything, unless you know that the thing you are trying to mimic is also hard coded. And to check this one out, you actually would need to have access to source codes which I suppose you would not really have.

    Then you could check the API docs for the components used, and see whether there is any function/method etc. which with you could query the font used in the control, or maybe set new one so it would match the font used by you in other components.

Similar Threads

  1. Replies: 6
    Last Post: 2011-04-14, 12:56
  2. Refreshing "Application list" in "Go To"-Softkey on 6131
    By cashee in forum General Development Questions
    Replies: 0
    Last Post: 2007-01-17, 08:49
  3. Replies: 3
    Last Post: 2006-11-30, 14:30
  4. How can in the "CEikTextListBox" set "Bold" font ?
    By comb in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-08-19, 06:06
  5. Replies: 1
    Last Post: 1970-01-01, 02: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
  •  
×