LibreOffice
LibreOffice 7.4 SDK API Reference
Public Attributes | List of all members
FontDescriptor Struct Referencepublished

describes the characteristics of a font. More...

import"FontDescriptor.idl";

Public Attributes

string Name
 specifies the exact name of the font. More...
 
short Height
 specifies the height of the font in the measure of the destination. More...
 
short Width
 specifies the width of the font in the measure of the destination. More...
 
string StyleName
 specifies the style name of the font. More...
 
short Family
 specifies the general style of the font. More...
 
short CharSet
 specifies the character set which is supported by the font. More...
 
short Pitch
 specifies the pitch of the font. More...
 
float CharacterWidth
 specifies the character width. More...
 
float Weight
 specifies the thickness of the line. More...
 
com::sun::star::awt::FontSlant Slant
 specifies the slant of the font. More...
 
short Underline
 specifies the kind of underlining. More...
 
short Strikeout
 specifies the kind of strikeout. More...
 
float Orientation
 specifies the rotation of the font. More...
 
boolean Kerning
 For requesting, it specifies if there is a kerning table available. More...
 
boolean WordLineMode
 specifies if only words get underlined. More...
 
short Type
 specifies the technology of the font representation. More...
 

Detailed Description

describes the characteristics of a font.

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

Member Data Documentation

◆ CharacterWidth

float CharacterWidth

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.

◆ CharSet

short CharSet

specifies the character set which is supported by the font.

Use one value out of the constant group com::sun::star::awt::CharSet.

◆ Family

short Family

specifies the general style of the font.

Use one value out of the constant group com::sun::star::awt::FontFamily.

◆ Height

short Height

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

◆ Kerning

boolean Kerning

For requesting, it specifies if there is a kerning table available.

For selecting, it specifies if the kerning table is to be used.

◆ Name

string Name

specifies the exact name of the font.

◆ Orientation

float Orientation

specifies the rotation of the font.

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

◆ Pitch

short Pitch

specifies the pitch of the font.

Use one value out of the constant group com::sun::star::awt::FontPitch.

◆ Slant

specifies the slant of the font.

◆ Strikeout

short Strikeout

specifies the kind of strikeout.

Use one value out of the constant group com::sun::star::awt::FontStrikeout.

◆ StyleName

string StyleName

specifies the style name of the font.

◆ Type

short Type

specifies the technology of the font representation.

One or more values out of the constant group com::sun::star::awt::FontType can be combined by an arithmetical or-operation.

◆ Underline

short Underline

specifies the kind of underlining.

Use one value out of the constant group com::sun::star::awt::FontUnderline.

◆ Weight

float Weight

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.

◆ Width

short Width

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

◆ WordLineMode

boolean WordLineMode

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 com::sun::star::awt::FontDescriptor::Underline is not FontUnderline::NONE.


The documentation for this struct was generated from the following file: