how to change font size in RichTextEditor?

Login to reply to this topic.
Wed, 2007-08-01 08:01
Joined: 2007-06-14
Forum posts: 12

Env: S60_2nd_FP2

i want to change the font size in RichTextEditor.
what should i do ?


Wed, 2007-08-01 09:30
Joined: 2007-06-21
Forum posts: 82
Re: how to change font size in RichTextEditor?

Hi

        //Changing the text color and size of the font in RichText editor
        TCharFormat format;
        TCharFormatMask mask;
       //Changing Color
        format.iFontPresentation.iTextColor = KRgbBlack;
       //Changing Height
        format.iFontSpec.iHeight=150;
        mask.SetAttrib(EAttColor);
        mask.SetAttrib(EAttFontHeight);
        CCharFormatLayer* layer = CCharFormatLayer::NewL(format, mask);
        iSmsEditor->SetCharFormatLayer(layer);        //Here iSmsEditor is RichTextEditor

Br
Gurpreet
www.mobisy.com

Wed, 2007-08-01 09:42
Joined: 2006-04-19
Forum posts: 134
Re: how to change font size in RichTextEditor?

You can visit this may it'll help you

http://www.forum.nokia.com/info/sw.nokia.com/id/ce86c31c-4190-42fc-ae12-5f744916f26e/S60_Platform_Rich_Text_Editor_Example_v2_0_en.zip.html

gud luk.

BR
Isha


"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".

Wed, 2007-08-01 11:00
Joined: 2007-06-14
Forum posts: 12
Re: how to change font size in RichTextEditor?

Thanks! @_@

  • Login to reply to this topic.