ITALIC

Constructor Detail

Font

public Font(java.lang.String name,
int style,
int size)

Creates a new Font from the specified name, style and
point size.

Parameters:

name - the font name. This can be a logical font name or a
font face name. A logical name must be either: Dialog, DialogInput,
Monospaced, Serif, or SansSerif. If name is
null, the name of the new
Font is set to the name "Default".

style - the style constant for the Font
The style argument is an integer bitmask that may
be PLAIN, or a bitwise union of BOLD and/or ITALIC
(for example, ITALIC or BOLD|ITALIC).

size - the point size of the Font

Font

name - the font name. This can be a logical font name or a
font face name. A logical name must be either: Dialog, DialogInput,
Monospaced, Serif, or SansSerif. If name is
null, the name of the new
Font is set to the name "Default".

style - the style constant for the Font
The style argument is an integer bitmask that may
be PLAIN, or a bitwise union of BOLD and/or ITALIC
(for example, ITALIC or BOLD|ITALIC).

size - the point size of the Font

letterSpacing - MThe amount of advance pixels. Default is "0".

Font

name - the font name. This can be a logical font name or a
font face name. A logical name must be either: Dialog, DialogInput,
Monospaced, Serif, or SansSerif. If name is
null, the name of the new
Font is set to the name "Default".

style - the style constant for the Font
The style argument is an integer bitmask that may
be PLAIN, or a bitwise union of BOLD and/or ITALIC
(for example, ITALIC or BOLD|ITALIC).

size - the point size of the Font

letterSpacing - MThe amount of advance pixels. Default is "0".

fontFamilies - The array of font families. The first entry from the
array should be the same as the name parameter (the main font family name).
The next entries are fallback family names, used when the main font does
not support all the glyphs. This is cloned, for immutability.

decodeFont

getFontNames

public java.lang.String[] getFontNames()

Get the array of font names. The first entry from the
array should be the same as the name parameter (the main font family name).
The next entries are fallback family names, used when the main font does
not support all the glyphs.

Returns:

The entire list of font names, including the main one
(on the first position), and the fallback ones.