在DrawText的时候,对字体iFont1= AknLayoutUtils::FontFromId(EAknLogicalFontDigitalFont); TFontSpec fontspec = iFont1->FontSpecInTwips(); fontspec.iHeight=300; CGraphicsDevice* screenDevice=iCoeEnv->ScreenDevice(); screenDevice->GetNearestFontInTwips((CFont*&)iFont1,fontspec); gc.UseFont(iFont1);................似乎只能通过fontspec.iHeight修改字体的大小,如何设置字体的宽度呢?
2 回答
达令说
TA贡献1821条经验 获得超6个赞
呵呵"$(EPOCROOT)\Epoc32\release\$(PLATFORM)\$(TARGET)\HTTPClientExample.exe" -"!:\sys\bin\HTTPClientExample.exe""$(EPOCROOT)\Epoc32\data\z\resource\apps\HTTPClientExample.rsc" -"!:\resource\apps\HTTPClientExample.rsc""$(EPOCROOT)\Epoc32\data\z\private\10003a3f\apps\HTTPClientExample_reg.rsc" -"!:\private\10003a3f\import\apps\HTTPClientExample_reg.rsc"看下SDK一直吗,安装路径和名称等问题,需要的地方修改下。看下Release_Notes.txt文件的BUILD & INSTALLATION INSTRUCTIONS部分。希望对你有帮助。
添加回答
举报
0/150
提交
取消