Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Rich text editor does not support anti-aliased fonts (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1 (30 Aug 2007)
Last edited: hamishwillee (19 Jun 2012)

Description

Anti-aliasing for scalable fonts can be set by using
   TFontStyle::SetBitmapType(EAntiAliasedGlyphBitmap);
or
   TOpenFontSpec::SetBitmapType(EAntiAliasedGlyphBitmap);
Anti-aliased fonts can be used when drawing text to a graphics context, as well as in labels. However, the setting is ignored when applied to a rich text editor (CEikRichTextEditor).

Solution

Create a CCharFormatLayer object and to set that as the global character format using SetGlobalCharFormat(). This will enable anti-aliasing globally for the editor.
    iMyCharFormatLayer = CCharFormatLayer::NewL();    // iMyCharFormatLayer is a class member
    RichText()->SetGlobalCharFormat(iMyCharFormatLayer);
Also remember to delete the CCharFormatLayer object in the destructor.

This page was last modified on 19 June 2012, at 08:08.
33 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×