Overview | Module | Use | Devguide | Index

Elements' Summary | Elements' Details

:: com :: sun :: star :: awt ::
struct FontDescriptor
Description describes the characteristics of a font. For example, this can be used to select a font.

Elements' Summary
Name | specifies the exact name of the font.
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.
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 the slant of the font.
Underline | specifies the kind of underlining.
Strikeout | specifies the kind of strikeout.
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.

Elements' Details
Name
string Name; Description specifies the exact name of the font.
Height
short Height; Description specifies the height of the font in the measure of the destination.
Width
short Width; Description specifies the width of the font in the measure of the destination.
StyleName
string StyleName; Description specifies the style name of the font.
Family
short Family; Description specifies the general style of the font. Use one value out of the constant group FontFamily .
CharSet
short CharSet; Description specifies the character set which is supported by the font. Use one value out of the constant group CharSet .
Pitch
short Pitch; Description specifies the pitch of the font. Use one value out of the constant group FontPitch .
CharacterWidth
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
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
FontSlant Slant; Description specifies the slant of the font.
Underline
short Underline; Description specifies the kind of underlining. Use one value out of the constant group FontUnderline .
Strikeout
short Strikeout; Description specifies the kind of strikeout. Use one value out of the constant group FontStrikeout .
Orientation
float Orientation; Description specifies the rotation of the font. The unit of measure is degrees; 0 is the baseline.
Kerning
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
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
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

Copyright © 2003 Sun Microsystems, Inc.