Sunday, January 24, 2016

How to change the text size




            


In symbian how to change the text size, the default font is too big
Reply:
CFont * font = NULL;
TFontSpec fontSpec = iEikonEnv- & gt; LegendFont () - & gt; FontSpecInTwips ();
fontSpec.iHeight - = fontSpec.iHeight / 3;

iCoeEnv- & gt; ScreenDevice () - & gt; GetNearestFontInTwips (font, fontSpec);
gc.UseFont (font);

.....

gc.DiscardFont ();
iCoeEnv- & gt; ScreenDevice () - & gt; ReleaseFont (font);

Using the above method can be compared LegendFont () 1/3 high small font.
Reply:
I am grateful for your guidance, but I tried the above code, font size, or not change anything

Reply:
My code can be used normally in S60 3rd on the 2nd have not tried.
Reply:
Oh thank you, I was 2nd

No comments:

Post a Comment