Overview | Methods | Fields | This Package | All Packages
OverviewMethodsFieldsThis PackageAll Packages
Font.Font
Creates a new Font object.
Syntax
public Font( int handle )
public Font( String name**, float** size )
public Font( String name**, float** size**, int** units )
public Font( String name, floatsize**,intunits, intweight, booleanitalic,booleanunderline,booleanstrikeOut)**
public Font( String name**, float** size**, int** units**, int** weight**, boolean** italic**, boolean** underline**, boolean** strikeOut**, int** charSet**, int** orientation )
public Font( Font font**, float** size**, int** units )
public Font( Font font**, int** weight**, boolean** italic**, boolean** underline**, boolean** strikeOut )
public Font( Font font**, float** size**, int** units**, int** weight**, boolean** italic**, boolean** underline**, boolean** strikeOut )
public Font( int family**, int** pitch**, float** size**, int** units )
public Font( int family**, int** pitch**, float** size**, int** units**, int** weight**, boolean** italic**, boolean** underline**, boolean** strikeOut )
public Font( int family**, int** pitch**, float** size**, int** units**, int** weight**, boolean** italic**, boolean** underline**, boolean** strikeOut**, int** charSet**, int** orientation )
public Font( FontMetrics fm )
public Font( FontDescriptor fd )
public Font( IDataStream stream )
Parameters
handle
The handle to a Win32 font. If you create a Font object based on a handle that you have allocated, the Font object does not dispose of this handle. Instead, you must free it manually.
name
The face name of the font to create.
size
The size of the font, measured in the units specified in the units parameter. If no units are specified, the size is measured in points. Each point measures 1/72 of an inch.
units
The units in which the size of the font is specified. This value must be one of the enumeration constants defined in the FontSize class.
weight
The weight of the font. This value can be any value from 1 to 1000. For some of the common values used for this parameter, see the FontWeight class.
italic
Set to true if the font is to be italicized; otherwise, set to false.
underline
Set to true if the font is to be underlined; otherwise, set to false.
strikeOut
Set to true if the font is to be struck through; otherwise, set to false.
charSet
The character set of the font. This value must be one of the enumeration constants defined in the com.ms.wfc.app.CharacterSet class.
orientation
Orientation of the font. This is the angle, in tenths of a degree, between a character's baseline and the x-axis of a device.
font
The existing font to use as a template.
family
The family of the font you want to create. This value must be one of the enumeration constants defined in the FontFamily class.
pitch
The pitch of the font you want to create. This value must be one of the enumeration values defined in the FontPitch class.
fm
A FontMetrics object that describes the font to create.
fd
A FontDescriptor object that describes the font to create.
stream
The IDataStream from which to read the font.