Hello,
In my application I have a standard settings list and a custom listbox (I provide my own implementation of the item drawer). I would like my custom listbox to use the same fonts as the settings list does (primary and secondary). How can I retrieve the CFont that the settings list uses? Currently I am using this code:
But the font drawed is larger the the font used by the settings list and it is more bolded...Code:const CAknLayoutFont * priFont = AknLayoutUtils::LayoutFontFromId (EAknLogicalFontPrimaryFont); const CAknLayoutFont * secFont = AknLayoutUtils::LayoutFontFromId (EAknLogicalFontPrimarySmallFont);
EDIT:
I've found out that the problem is due to phone settings - whether the font size is set to small, normal or large. Only when the size is set to normal, setting the custom list font through:
const CAknLayoutFont * priFont = AknLayoutUtils::LayoutFontFromId (EAknLogicalFontPrimaryFont);
const CAknLayoutFont * secFont = AknLayoutUtils::LayoutFontFromId (EAknLogicalFontSecondaryFont);
... gives correct results. However when the font size is set to small or large, the standard settings list reflects that and the custom list doesn't. I just want the custom list font to behave exactly like in a standard component.
EDIT2:
This is definitely a problem with the Logical Font API - it doesn't take into account the phone settings (font size small/normal/large) when returning a font. It always returns a normal size font.
Any ideas how to work this issue out?
Thanks for your help.
Maciej



