Help me please ! Font size doesn't change ! Thanks very much !
| Thu, 2005-09-15 03:53 | |
|
Hi all !
I have specified font size = 50 but the text on screen doesn't biger . Please help me ! Thanks very much ! ------------------------------------- My code to output text ------------------------------------------ // Get smallest possible arial font _LIT(KMyFontName,"Roman"); CFont* myFont; TFontSpec myFontSpec(KMyFontName,50); // font size = 50 CGraphicsDevice* screenDevice = iCoeEnv->ScreenDevice(); screenDevice->GetNearestFontInTwips(myFont,myFontSpec); // Use new font gc.UseFont(myFont); gc.SetPenColor( 0xC8B834 ); // Draw some text _LIT(KMyText,"My text"); gc.DrawText(KMyText, TPoint(45, 115) ); // Discard and release the font gc.DiscardFont(); screenDevice->ReleaseFont(myFont); -------------------------------------------------------- doctinh113114 ! Please help me ! Thanks very much ! --------------------- |
|






Forum posts: 11
Forum posts: 11
Alpi12, 143
Albi12, 143
Alp13, 155
Alpi13, 155
Albi13, 155
alp17, 203
Alb17b, 203
albi17b, 203
alpi17, 203
Aco13, 107
Aco21, 250
Acalc21, 250
LatinBold12, 143
LatinBold13, 155
LatinBold17, 203
LatinBold19, 226
LatinPlain12, 143
Acb14, 167
Acb30, 357
Acp5, 60
Forum posts: 107
Forum posts: 2
Forum posts: 2006
Some fonts are very limited character set and may display nothing. Check our Fontviewer application if you need more info about each font
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 2
Acb14, Acb30, Acp5
It shows no text but many of the other fonts shows the text