How to free memory occupied by iEikonEnv->DenseFont()

Login to reply to this topic.
Fri, 2007-11-23 06:20
Joined: 2007-05-01
Forum posts: 40

Hi

I am using S60 3.1 SDK for development purpose.

const CFont* normalFont = iEikonEnv->DenseFont();

How to free the memory occupied by normalFont.

Thanks in Advance
Nand


Fri, 2007-11-23 09:35
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: How to free memory occupied by iEikonEnv->DenseFont()

You don't need to as you don't have the ownership of the font.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Fri, 2007-11-30 05:28
Joined: 2004-10-07
Forum posts: 47
Re: How to free memory occupied by iEikonEnv->DenseFont()

hi,
example code:
const CFont* font = iEikonEnv->DenseFont();
gc.UseFont(font);
gc.SetPenStyle(CGraphicsContext::ESolidPen);
gc.SetPenColor(KRgbWhite);
gc.DrawText(_L("TestFile...")......);
gc.DiscardFont();


Thanks & Regards,
Symbi

  • Login to reply to this topic.