struct SimpleFontMetric in module com::sun::star::awt::

(Global Index)

Syntax

struct SimpleFontMetric;

Description

describes the general metrics of a certain font.

Field Summary

Ascent specifies the portion of a lower case character that rises above the height of the character "x" of the font.

Descent specifies the portion of a letter falling below the baseline.

Leading specifies the vertical space between lines of this font; it is also called internal linespacing.

Slant specifies the slant of the characters (italic).

FirstChar specifies the code of the first printable character in the font.

LastChar specifies the code of the last printable character in the font.

Field Details



Ascent

Syntax

short Ascent;

Description

specifies the portion of a lower case character that rises above the height of the character "x" of the font.

For example, the letters 'b', 'd', 'h', 'k' and 'l' have an ascent unequal to 0.

ascent is measured in pixels, thus the font metric is device dependent.


Descent

Syntax

short Descent;

Description

specifies the portion of a letter falling below the baseline.

For example, the letters 'g', 'p', and 'y' have a descent unequal to 0.

descent is measured in pixels, thus the font metric is device dependent.


Leading

Syntax

short Leading;

Description

specifies the vertical space between lines of this font; it is also called internal linespacing.

The leading is measured in pixels, thus the font metric is device dependent.


Slant

Syntax

short Slant;

Description

specifies the slant of the characters (italic).

The slant is measured in degrees from 0 to 359.


FirstChar

Syntax

char FirstChar;

Description

specifies the code of the first printable character in the font.


LastChar

Syntax

char LastChar;

Description

specifies the code of the last printable character in the font.

Top of Page