Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Font information statement

A number of font information statements can be defined. Each statement has the following syntax:

FontInfo font-height-label

MaxNormalCharWidth char-width

Ascent ascent

code-section-clause-list

EndFontBitMap

Note the following points:

[Top]


code-section-clause

A code-section-clause has the following syntax:

CodeSection code-point-start code-point-end

char-width-clause-list

EndCodeSection

A code-section-clause provides width information for characters in the range code-point-start to code-point-end. The width of each character in this range is defined by a char-width-clause. Each successive char-width-clause defines successive characters in ascending numerical order through the range. There must be precisely the required number of char-width-clauses, i.e. the value of code-point-end - code-point-start + 1, unless the font is monospaced, in which case only one char-width-clause, for the first character in the range, is necessary, as all characters in the range will be defined to have this width.


char-width-clause

A char-width-clause has the following syntax:

<char-width-clause>
char-width-clause ::=
<char-code><char-width>

[Top]


Example

FontInfo Courier12
              MaxNormalCharWidth 30
              Ascent 40
              CodeSection 0:255
                0:30
              EndCodeSection
EndFontInfo