下载此文档

symbian字体.docx


文档分类:办公文档 | 页数:约6页 举报非法文档有奖
1/6
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/6 下载此文档
文档列表 文档介绍
先看看代码,由于标签的原有有些内容有误,
 (_L("SymbolFont \x671D\x5916\x5927\x8857"),TPoint(x,baseH));
被显示成了    (_L("SymbolFont g1DY16Y27ˆ57"),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转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数6
  • 收藏数0 收藏
  • 顶次数0
  • 上传人wxc6688
  • 文件大小22 KB
  • 时间2018-06-15