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

(Global Index)

Syntax

struct FontDescriptor;

Description

describes the characteristics of a font.

For example, this can be used to select a font.

Field Summary

Name specifies the exact name of the font ("Arial", "Courier", "Frutiger").

Height specifies the height of the font in the measure of the destination.

Width specifies the width of the font in the measure of the destination.

StyleName specifies the style name of the font ("Bold", "Fett", "Italic Bold").

Family specifies the general style of the font.

CharSet specifies the character set which is supported by the font.

Pitch specifies the pitch of the font.

CharacterWidth specifies the character width.

Weight specifies the thickness of the line.

Slant specifies if there is a character slant (italic).

Underline use one value out of the constant group FontUnderline .

Strikeout use one value out of the constant group FontStrikeout .

Orientation specifies the rotation of the font.

Kerning for requesting, it specifies if there is a kerning table available. For selecting, it specifies if the kerning table is to be used.

WordLineMode specifies if only words get underlined.

Type specifies the technology of the font representation.

Field Details



Name

Syntax

string Name;

Description

specifies the exact name of the font ("Arial", "Courier", "Frutiger").


Height

Syntax

short Height;

Description

specifies the height of the font in the measure of the destination.


Width

Syntax

short Width;

Description

specifies the width of the font in the measure of the destination.


StyleName

Syntax

string StyleName;

Description

specifies the style name of the font ("Bold", "Fett", "Italic Bold").


Family

Syntax

short Family;

Description

specifies the general style of the font.

Use one value out of the constant group FontFamily .


CharSet

Syntax

short CharSet;

Description

specifies the character set which is supported by the font.

Use one value out of the constant group CharSet .


Pitch

Syntax

short Pitch;

Description

specifies the pitch of the font.

Use one value out of the constant group FontPitch .


CharacterWidth

Syntax

float CharacterWidth;

Description

specifies the character width.

Depending on the specified width, a font that supports this width may be selected.

The value is expressed as a percentage.


Weight

Syntax

float Weight;

Description

specifies the thickness of the line.

Depending on the specified weight, a font that supports this thickness may be selected.

The value is expressed as a percentage.


Slant

Syntax

com::sun::star::awt::FontSlant Slant;

Description

specifies if there is a character slant (italic).


Underline

Syntax

short Underline;

Description

use one value out of the constant group FontUnderline .


Strikeout

Syntax

short Strikeout;

Description

use one value out of the constant group FontStrikeout .


Orientation

Syntax

float Orientation;

Description

specifies the rotation of the font.

The unit of measure is degrees; 0 is the baseline.


Kerning

Syntax

boolean Kerning;

Description

for requesting, it specifies if there is a kerning table available. For selecting, it specifies if the kerning table is to be used.


WordLineMode

Syntax

boolean WordLineMode;

Description

specifies if only words get underlined.

true means that only non-space characters get underlined, false means that the spacing also gets underlined.

This property is only valid if the property FontDescriptor::Underline is not FontUnderline::NONE .


Type

Syntax

short Type;

Description

specifies the technology of the font representation.

One or more values out of the constant group FontType can be combined by an arithmetical or-operation.

Top of Page