Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Typeface statement

The typeface statement defines a typeface and gives it a label. Each statement has the following syntax:

TypefaceFonts typeface-label

Name typeface-name [ Symbol ] [ Proportional ] [ Serif ] [ Translates translate-label ] font-height-section-clause-list | scalable-font-height-section-clause

EndTypeface

The typeface may be a symbol typeface and/or a proportional typeface and/or a serif typeface, but note that:

The font heights available in the typeface are defined in the font-height-section-clause-list for a non-scalable typeface, or in the single scalable-font-height-section-clause for a scalable typeface.


Font height section clause

A font-height-section-clause has the following syntax:

FontHeight

Height font-height

Normal normal-font

Bold bold-font

Italic italic-font

BoldItalic bold-italic-font

Command command-string

EndFontHeight

[Top]


Scalable font height section clause

A scalable-font-height-section-clause has the following syntax:

ScalableFontHeight

HeightMin min-font-height

HeightMax max-font-height

HeightDelta font-height-delta

Normal normal-font

Bold bold-font

Italic italic-font

BoldItalic bold-italic-font

Command command-string

EndScalableFontHeight

All font heights are measured in twips.

Fonts are defined for each style for any font height of a given typeface.

normal-font, bold-font, italic-font, and bold-italic-font are all font-height-labels defined in previous font information statements.

[Top]


Example

TypefaceFonts Courier
              Name "Courier" Serif
              Translates Latin1ToWindows
              FontHeight
                Height 200
                Normal Courier10
                Bold Courier10
                Italic Courier10
                BoldItalic Courier10
                Command "<27>(s0p12h10v3T"
              EndFontHeight
              FontHeight
                Height 240
                Normal Courier12
                Bold Courier12
                Italic Courier12
                BoldItalic Courier12
                Command "<27>(s0p10h12v3T"
              EndFontHeight
EndTypefaceFonts