s60中 怎么改变中文字体大小

fooooot 2007-10-18 01:11:08
如题
...全文
419 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
meiZiNick 2008-05-01
  • 打赏
  • 举报
回复
什么呀
knowledge_Is_Life 2008-05-01
  • 打赏
  • 举报
回复
什么呀
Juncof 2007-11-06
  • 打赏
  • 举报
回复
TParaFormatMask;
CParaFormat;
TCharFormatMask;
TCharFormat;
mShopping 2007-11-03
  • 打赏
  • 举报
回复
楼主不厚道,出来结帐....
dyw 2007-10-19
  • 打赏
  • 举报
回复
改变什么地方的字体?是DrawText吗?试试下面代码的效果:
// set up absolute font-spec and text box for 200 twip Roman font
TFontSpec fontSpec(_L("Times New Roman"),200);
// find the nearest font to the specified one
CFont* screenFont;
deviceMap->GetNearestFontInTwips(screenFont,fontSpec);
// use it for this graphics context
gc.UseFont(screenFont);
gc.DrawText(_L("some example text"),TPoint(20,20));
// discard and release font
gc.DiscardFont();
deviceMap->ReleaseFont(screenFont);
mShopping 2007-10-19
  • 打赏
  • 举报
回复
// Get an alternative font
_LIT(KMyFontName,"Swiss");
CFont* myFont;
TFontSpec myFontSpec(KMyFontName,1); // to get smallest Swiss font
CGraphicsDevice* screenDevice=iCoeEnv->ScreenDevice();
screenDevice->GetNearestFontInTwips(myFont,myFontSpec);
gc.UseFont(myFont);

// Set the text drawing position & draw
// Note: using the overload of DrawText() that
// draws a background box may give less flicker
TInt fontDescent=myFont->DescentInPixels();
TPoint pos(0,tinyBox.Height()-fontDescent);
pos+=tinyBox.iTl;
_LIT(KMyText,"This text to write");
gc.DrawText(KMyText,pos);

// Discard and destroy the font
gc.DiscardFont();
screenDevice->ReleaseFont(myFont);

3,119

社区成员

发帖
与我相关
我的任务
社区描述
塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧