先看看代码,由于标签的原有有些内容有误,
(_L("SymbolFont \x671D\x5916\x5927\x8857"),TPoint(x,baseH));
被显示成了 (_L("SymbolFont g1DY16Y2757"),TPoint(x,baseH));
实际上\x671D\x5916\x5927\x8857是汉字朝外大街。
获取固定大小的字体:
void CTestView::Draw( const TRect& /**//*aRect*/ ) const
...{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
// Gets the control's extent
TRect drawRect( Rect());
// Clears the screen
( drawRect );
TInt baseH=0;
TInt incH=10;
TInt x=0;
const CFont* myFont=NULL;
//--------------------------拉丁字体
myFont=LatinPlain12();
( myFont );
baseH+=myFont->HeightInPixels()+1;
(_L("LatinPlain12 朝外大街"),TPoint(x,baseH));
();
myFont=LatinBold12();
( myFont );
baseH+=myFont->HeightInPixels()+1;
//(_L("LatinBold12 朝外大街"),TPoint(x,baseH));
(_L("LatinBold12"),TPoint(x,baseH));
();
myFont=LatinBold13();
( myFont );
baseH+=myFont->HeightInPixels()+1;
//(_L("LatinBold13 朝外大街"),TPoint(x,baseH));
(_L("LatinBold13"),TPoint(x,baseH));
();
myFont
symbian字体 来自淘豆网m.daumloan.com转载请标明出处.