CCoeEnv::Static()->NormalFont()
CEikonEnv::Static()->AnnotationFont()
CEikonEnv::Static()->TitleFont()
CEikonEnv::Static()->LegendFont()
CEikonEnv::Static()->SymbolFont()
CEikonEnv::Static()->DenseFont()
改變字型
在第三版的可以這樣
CFont *font = NULL;
TFontSpec fontSpec = iEikonEnv->TitleFont()->FontSpecInTwips();
fontSpec.iHeight *= 0.8;
iCoeEnv->ScreenDevice()->GetNearestFontInTwips(font,fontSpec);
_LIT(KMyFontName,"Swiss");
TFontSpec myFontSpec1(KMyFontName,200);
CFont* myFont1;
//加粗
myFontSpec1.iFontStyle.SetStrokeWeight(EStrokeWeightBold);
//斜體
myFontSpec1.iFontStyle.SetPosture(EPostureItalic);
//陽文
myFontSpec1.iFontStyle.SetEffects(FontEffect::EEmbossed,ETrue);
//擷取字型
iFbsScreenDevice->GetNearestFontToMaxHeightInTwips(myFont1, myFontSpec1, 220);
//選擇字型
iFbsBitGc->UseFont(myFont1);
//設定畫筆顏色為紅色
iFbsBitGc->SetPenColor(KRgbRed);
_LIT(KText, "This is a Test!");
TBufC<20> text (KText);
iFbsBitGc ->DrawText(text, TPoint(120, 200));
iFbsScreenDevice->Update();
// Discard and destroy the font
iFbsScreenDevice->ReleaseFont(myFont1);