关于CTypefaceStore -1错误
小弟定义了两个字体,一个是系统字体。一个是自定义字体。
const CFont* ifont;CFont* font;ifont = iEikonEnv->DenseFont();TFontSpec fontSpec = iEikonEnv->NormalFont()->FontSpecInTwips();fontSpec.iHeight = 120;iCoeEnv->ScreenDevice()->GetNearestFontInTwips(font, fontSpec); CWindowGc& gc = SystemGc();gc.Clear( aRect );gc.UseFont(font);gc.SetPenColor(TRgb(0,0,0));gc.DrawText(iBuf,TPoint(iTitleTextX,iTitleTextY));gc.DiscardFont();iCoeEnv->ScreenDevice()->ReleaseFont(font);gc.UseFont(ifont);gc.SetPenColor(TRgb(255,255,255));gc.DrawText(iArrayTitle[loop]->Des(),TPoint(TitleTxtX,TitleTxtY));gc.DiscardFont();