Namespaces
Variants
Actions

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

Jump to: navigation, search
Archived.png
Archived: 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

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 11:08.
195 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved