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.
The API has five key concepts: font specification, device-independent font interface, bitmap font, typeface, and typeface store.
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.
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.
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.
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.