FontsShell: fonts

Note: This example is designed to work with TechView and there is no guarantee that it will work with other interfaces.

Description

FontsShell provides an application shell and two concrete controls.

CGraphicExampleControl is a control class, derived from CCoeControl, which links the app shell to the particular controls.

CHelloControl illustrates the drawing of text using a standard font.

CFontControl illustrates the use of fonts.

Download

Click on the following link to download the example: Fonts.zip

Download some additional files required by the example: CommonGraphicsExampleFiles

Click: browse to view the example code.

View the additional files: browse.

Class Summary

By the hello control:

TRect

CWindowGc

CFont

By the fonts control:

CWindowGc

TTypefaceSupport

TFontSpec

TZoomFactor

MGraphicsDeviceMap

Build

The source code for this example application can be found in the directory:

examples\Graphics\Fonts

This source code may be in the directory in which you installed the Symbian platform, or it may be in the src\common\developerlibrary\ directory. The directory includes the two project files needed for building the example: bld.inf and the .mmp file.

The Symbian build process describes how to build this application. For the emulator, an application called FontsShell.exe is created in epoc32\release\winscw\<udeb or urel>\.

Usage

  1. Launch the emulator:

    \epoc32\release\winscw\<urel or udeb>\EPOC.EXE.

  2. Click on FONTSSHELL to run the application. If using the TechView emulator, this will be in the Extras menu.

  3. The controls are listed on the menu List of Programs. Press the appropriate menu item to select a specific control.

  4. Step through each phase of the example by pressing the space bar or by tapping on the window drawn by that example.