Package | Description |
---|---|
java.awt.font |
Provides classes and interface relating to fonts.
|
Modifier and Type | Method | Description |
---|---|---|
abstract FontRenderContext |
GlyphVector.getFontRenderContext() |
Returns the
FontRenderContext associated with this
GlyphVector . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
FontRenderContext.equals(FontRenderContext rhs) |
Return true if rhs has the same transform, antialiasing,
and fractional metrics values as this.
|
java.awt.Rectangle |
GlyphVector.getGlyphPixelBounds(int index,
FontRenderContext renderFRC,
float x,
float y) |
Returns the pixel bounds of the glyph at index when this
GlyphVector is rendered in a Graphics with the
given FontRenderContext at the given location. |
java.awt.Rectangle |
GlyphVector.getPixelBounds(FontRenderContext renderFRC,
float x,
float y) |
Returns the pixel bounds of this
GlyphVector when
rendered in a graphics with the given
FontRenderContext at the given location. |
java.awt.Rectangle |
TextLayout.getPixelBounds(FontRenderContext frc,
float x,
float y) |
Returns the pixel bounds of this
TextLayout when
rendered in a graphics with the given
FontRenderContext at the given location. |
Constructor | Description |
---|---|
LineBreakMeasurer(AttributedCharacterIterator text,
FontRenderContext frc) |
Constructs a
LineBreakMeasurer for the specified text. |
LineBreakMeasurer(AttributedCharacterIterator text,
BreakIterator breakIter,
FontRenderContext frc) |
Constructs a
LineBreakMeasurer for the specified text. |
TextLayout(String string,
java.awt.Font font,
FontRenderContext frc) |
Constructs a
TextLayout from a String
and a Font . |
TextLayout(String string,
Map<? extends AttributedCharacterIterator.Attribute,?> attributes,
FontRenderContext frc) |
Constructs a
TextLayout from a String
and an attribute set. |
TextLayout(AttributedCharacterIterator text,
FontRenderContext frc) |
Constructs a
TextLayout from an iterator over styled text. |
TextMeasurer(AttributedCharacterIterator text,
FontRenderContext frc) |
Constructs a
TextMeasurer from the source text. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b151-2