Uses of Class
java.awt.font.FontRenderContext
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes and interface relating to fonts.
-
Uses of FontRenderContext in java.awt
Modifier and TypeMethodDescriptionFontMetrics.getFontRenderContext()
Gets theFontRenderContext
used by thisFontMetrics
object to measure text.abstract FontRenderContext
Graphics2D.getFontRenderContext()
Get the rendering context of theFont
within thisGraphics2D
context.Modifier and TypeMethodDescriptionFont.createGlyphVector
(FontRenderContext frc, char[] chars) Creates aGlyphVector
by mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont
.Font.createGlyphVector
(FontRenderContext frc, int[] glyphCodes) Creates aGlyphVector
by mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont
.Font.createGlyphVector
(FontRenderContext frc, String str) Creates aGlyphVector
by mapping characters to glyphs one-to-one based on the Unicode cmap in thisFont
.Font.createGlyphVector
(FontRenderContext frc, CharacterIterator ci) Creates aGlyphVector
by mapping the specified characters to glyphs one-to-one based on the Unicode cmap in thisFont
.Font.getLineMetrics
(char[] chars, int beginIndex, int limit, FontRenderContext frc) Returns aLineMetrics
object created with the specified arguments.Font.getLineMetrics
(String str, int beginIndex, int limit, FontRenderContext frc) Returns aLineMetrics
object created with the specified arguments.Font.getLineMetrics
(String str, FontRenderContext frc) Font.getLineMetrics
(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) Returns aLineMetrics
object created with the specified arguments.Font.getMaxCharBounds
(FontRenderContext frc) Returns the bounds for the character with the maximum bounds as defined in the specifiedFontRenderContext
.Font.getStringBounds
(char[] chars, int beginIndex, int limit, FontRenderContext frc) Returns the logical bounds of the specified array of characters in the specifiedFontRenderContext
.Font.getStringBounds
(String str, int beginIndex, int limit, FontRenderContext frc) Returns the logical bounds of the specifiedString
in the specifiedFontRenderContext
.Font.getStringBounds
(String str, FontRenderContext frc) Returns the logical bounds of the specifiedString
in the specifiedFontRenderContext
.Font.getStringBounds
(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) Returns the logical bounds of the characters indexed in the specifiedCharacterIterator
in the specifiedFontRenderContext
.Font.layoutGlyphVector
(FontRenderContext frc, char[] text, int start, int limit, int flags) Returns a newGlyphVector
object, performing full layout of the text if possible. -
Uses of FontRenderContext in java.awt.font
Modifier and TypeMethodDescriptionabstract FontRenderContext
GlyphVector.getFontRenderContext()
Returns theFontRenderContext
associated with thisGlyphVector
.Modifier and TypeMethodDescriptionboolean
FontRenderContext.equals
(FontRenderContext rhs) Return true if rhs has the same transform, antialiasing, and fractional metrics values as this.GlyphVector.getGlyphPixelBounds
(int index, FontRenderContext renderFRC, float x, float y) Returns the pixel bounds of the glyph at index when thisGlyphVector
is rendered in aGraphics
with the givenFontRenderContext
at the given location.GlyphVector.getPixelBounds
(FontRenderContext renderFRC, float x, float y) Returns the pixel bounds of thisGlyphVector
when rendered in a graphics with the givenFontRenderContext
at the given location.TextLayout.getPixelBounds
(FontRenderContext frc, float x, float y) Returns the pixel bounds of thisTextLayout
when rendered in a graphics with the givenFontRenderContext
at the given location.ModifierConstructorDescriptionConstructs aLineBreakMeasurer
for the specified text.LineBreakMeasurer
(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc) Constructs aLineBreakMeasurer
for the specified text.TextLayout
(String string, Font font, FontRenderContext frc) TextLayout
(String string, Map<? extends AttributedCharacterIterator.Attribute, ?> attributes, FontRenderContext frc) Constructs aTextLayout
from aString
and an attribute set.Constructs aTextLayout
from an iterator over styled text.Constructs aTextMeasurer
from the source text.