Top   Module   Use   Manual   Index 

com :: sun :: star :: awt ::

struct FontDescriptor


Description
describes the characteristics of a font.

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



Elements

string Name
Description
specifies the exact name of the font ("Arial", "Courier", "Frutiger").
short Height
Description
specifies the height of the font in the measure of the destination.
short Width
Description
specifies the width of the font in the measure of the destination.
string StyleName
Description
specifies the style name of the font ("Bold", "Fett", "Italic Bold").
short Family
Description
specifies the general style of the font.

Use one value out of the constant group FontFamily .

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

Use one value out of the constant group CharSet .

short Pitch
Description
specifies the pitch of the font.

Use one value out of the constant group FontPitch .

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.

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.

com::sun::star::awt::FontSlant Slant
Description
specifies if there is a character slant (italic).
short Underline
Description
use one value out of the constant group FontUnderline .
short Strikeout
Description
use one value out of the constant group FontStrikeout .
float Orientation
Description
specifies the rotation of the font.

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

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.
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 .

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