Archived:Rich text editor does not support anti-aliased fonts (Known Issue)
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
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.


(no comments yet)