Hi I have implented the same but it is giving errors
Code:
TInt posX = iSize.iWidth - 90;
iLabel1->OverrideColorL( EColorLabelText, KRgbDarkBlue );
const CFont *poFont = CEikonEnv::Static()->AnnotationFont() ;
TFontSpec fontSpec(_L("Italics"), 3);
fontSpec.iTypeface.SetIsProportional(ETrue);
fontSpec.iFontStyle.SetPosture(EPostureItalic);
iCoeEnv->ScreenDevice()->GetNearestFontInTwips(*poFont, fontSpec);
iLabel1->SetFont(poFont);
iLabel1->SetExtent( TPoint( posX,6 ),iLabel1->MinimumSize() );
But I am getting error: 'CWsScreenDevice::GetNearestFontInTwips(CFont *&, const TFontSpec &)' (non-static)
function call '[CWsScreenDevice].GetNearestFontInTwips({lval} const CFont, {lval} TFontSpec)' does not match