Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Fonts Overview


Purpose

Provides fonts for drawing text to graphical devices.

[Top]


Architectural relationships

This API provides abstract device-independent font interfaces, implementations of bitmap fonts for drawing on-screen, and access to scalable fonts provided through the Open Font System. Applications use the API to get the fonts they require, and use it in a graphics context to draw text.

The font and bitmap server manages sharing of bitmap fonts between clients, though the client/server access is hidden by the API.

The Uikon Core API's UI Environment (CEikonEnv) provides quick access to standard screen fonts.

[Top]


Description

The API has five key concepts: font specification, device-independent font interface, bitmap font, typeface, and typeface store.


Font specification

A font specification is used to specify a desired font in device-independent terms. This can include the typeface, font style (posture, weight, and position), and height.

It is provided by TFontSpec. The font style is provided by TFontStyle.


Device-independent font interface

Applications obtain font objects from a graphics device by providing a font specification. The interface is device-independent, and is implemented by providers of fonts for particular devices.

The interface is CFont. Obtained fonts can be cached for quick retrieval through CFontCache.


Bitmap font

The bitmap font class implements the font interface for screen and off-screen bitmap fonts. It includes functions to obtain information about scalable fonts provided through the Open Font System API.

It is provided by CFbsFont.


Typeface

A typeface is a group of related fonts of various sizes that share the same typeface name and typeface attributes (e.g. proportional/non-proportional, serif/sans-serif).

Typeface information is encapsulated in a TTypefaceSupport, including a TTypeface class member.


Typeface store

A typeface store allows you to discover the typefaces provided by a graphics device.

A device-independent interface is defined by CTypefaceStore. CFbsTypefaceStore implements this for bitmap devices.

[Top]


See also

Text and Text Attributes Overview

Uikon Core Overview