boolean
|
canDisplay(char c)
Checks if this Font has a glyph for the specified
character.
|
boolean
|
canDisplay(int codePoint)
Checks if this Font has a glyph for the specified
character.
|
int
|
canDisplayUpTo(char[] text, int start, int limit)
Indicates whether or not this Font can display
the characters in the specified text
starting at start and ending at
limit .
|
int
|
canDisplayUpTo(CharacterIterator iter, int start, int limit)
Indicates whether or not this Font can display the
text specified by the iter starting at
start and ending at limit .
|
int
|
canDisplayUpTo(String str)
Indicates whether or not this Font can display a
specified String .
|
static
Font
|
createFont(int fontFormat, InputStream fontStream)
Returns a new Font using the specified font type
and input data.
|
static
Font
|
createFont(int fontFormat, File fontFile)
Returns a new Font using the specified font type
and the specified font file.
|
GlyphVector
|
createGlyphVector(FontRenderContext frc, CharacterIterator ci)
Creates a GlyphVector by
mapping the specified characters to glyphs one-to-one based on the
Unicode cmap in this Font .
|
GlyphVector
|
createGlyphVector(FontRenderContext frc, String str)
Creates a GlyphVector by
mapping characters to glyphs one-to-one based on the
Unicode cmap in this Font .
|
GlyphVector
|
createGlyphVector(FontRenderContext frc, char[] chars)
Creates a GlyphVector by
mapping characters to glyphs one-to-one based on the
Unicode cmap in this Font .
|
GlyphVector
|
createGlyphVector(FontRenderContext frc, int[] glyphCodes)
Creates a GlyphVector by
mapping characters to glyphs one-to-one based on the
Unicode cmap in this Font .
|
static
Font
|
decode(String str)
Returns the Font that the str
argument describes.
|
Font
|
deriveFont(AffineTransform trans)
Creates a new Font object by replicating the current
Font object and applying a new transform to it.
|
Font
|
deriveFont(int style, AffineTransform trans)
Creates a new Font object by replicating this
Font object and applying a new style and transform.
|
Font
|
deriveFont(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes)
Creates a new Font object by replicating the current
Font object and applying a new set of font attributes
to it.
|
Font
|
deriveFont(int style)
Creates a new Font object by replicating the current
Font object and applying a new style to it.
|
Font
|
deriveFont(int style, float size)
Creates a new Font object by replicating this
Font object and applying a new style and size.
|
Font
|
deriveFont(float size)
Creates a new Font object by replicating the current
Font object and applying a new size to it.
|
boolean
|
equals(Object obj)
Compares this Font object to the specified
Object .
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
Map<TextAttribute, ?>
|
getAttributes()
Returns a map of font attributes available in this
Font .
|
Attribute[]
|
getAvailableAttributes()
Returns the keys of all the attributes supported by this
Font .
|
byte
|
getBaselineFor(char c)
Returns the baseline appropriate for displaying this character.
|
String
|
getFamily(Locale l)
Returns the family name of this Font , localized for
the specified locale.
|
String
|
getFamily()
Returns the family name of this Font .
|
static
Font
|
getFont(String nm, Font font)
Gets the specified Font from the system properties
list.
|
static
Font
|
getFont(String nm)
Returns a Font object from the system properties list.
|
static
Font
|
getFont(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes)
Returns a Font appropriate to the attributes.
|
String
|
getFontName(Locale l)
Returns the font face name of the Font , localized
for the specified locale.
|
String
|
getFontName()
Returns the font face name of this Font .
|
float
|
getItalicAngle()
Returns the italic angle of this Font .
|
LineMetrics
|
getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
Returns a LineMetrics object created with the
specified arguments.
|
LineMetrics
|
getLineMetrics(String str, FontRenderContext frc)
|
LineMetrics
|
getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc)
Returns a LineMetrics object created with the
specified arguments.
|
LineMetrics
|
getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc)
Returns a LineMetrics object created with the
specified arguments.
|
Rectangle2D
|
getMaxCharBounds(FontRenderContext frc)
Returns the bounds for the character with the maximum
bounds as defined in the specified FontRenderContext .
|
int
|
getMissingGlyphCode()
Returns the glyphCode which is used when this Font
does not have a glyph for a specified unicode code point.
|
String
|
getName()
Returns the logical name of this Font .
|
int
|
getNumGlyphs()
Returns the number of glyphs in this Font .
|
String
|
getPSName()
Returns the postscript name of this Font .
|
FontPeer
|
getPeer()
This method is deprecated.
Font rendering is now platform independent.
|
int
|
getSize()
Returns the point size of this Font , rounded to
an integer.
|
float
|
getSize2D()
Returns the point size of this Font in
float value.
|
Rectangle2D
|
getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)
Returns the logical bounds of the specified array of characters
in the specified FontRenderContext .
|
Rectangle2D
|
getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)
Returns the logical bounds of the specified String in
the specified FontRenderContext .
|
Rectangle2D
|
getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
Returns the logical bounds of the characters indexed in the
specified CharacterIterator in the
specified FontRenderContext .
|
Rectangle2D
|
getStringBounds(String str, FontRenderContext frc)
Returns the logical bounds of the specified String in
the specified FontRenderContext .
|
int
|
getStyle()
Returns the style of this Font .
|
AffineTransform
|
getTransform()
Returns a copy of the transform associated with this
Font .
|
boolean
|
hasLayoutAttributes()
Return true if this Font contains attributes that require extra
layout processing.
|
boolean
|
hasUniformLineMetrics()
Checks whether or not this Font has uniform
line metrics.
|
int
|
hashCode()
Returns a hashcode for this Font .
|
boolean
|
isBold()
Indicates whether or not this Font object's style is
BOLD.
|
boolean
|
isItalic()
Indicates whether or not this Font object's style is
ITALIC.
|
boolean
|
isPlain()
Indicates whether or not this Font object's style is
PLAIN.
|
boolean
|
isTransformed()
Indicates whether or not this Font object has a
transform that affects its size in addition to the Size
attribute.
|
GlyphVector
|
layoutGlyphVector(FontRenderContext frc, char[] text, int start, int limit, int flags)
Returns a new GlyphVector object, performing full
layout of the text if possible.
|
String
|
toString()
Converts this Font object to a String
representation.
|