Fixed Width Font - Symbian C ++ CEikLabel

I want to change the font that I use in CEikLabel device on S60 device

I believe I can do the following

const CFont* aPlainFont = LatinPlain12();
aLabel->SetFont(aPlainFont);

      

where LatinPlain12 is one of this list.

Albi12
Alp13
Alpi13
Albi13
alp17
Alb17b
albi17b
alpi17
Aco13
Aco21
Acalc21
LatinBold12
LatinBold13
LatinBold17
LatinBold19 
LatinPlain12
Acb14
Acb30
Acp5

      

However, who can help me find out which of this list are fixed width .. Thanks :)

+1


source to share


2 answers


Programmatically, you can determine if a font is proportional using:

const CFont* myFont; 
// Initialize your font
// ....
TBool isProportional = (myFont->FontSpecInTwips().iTypeface.Attributes() & TTypeFace::EProportional);

      



By the way, you might be better off enumerating fonts on the device and / or using the Boolean Fonts API than relying on static font access functions.

0


source


You can use the FontViewer app to view and find out which font is proportional and fixed.



+1


source







All Articles