Uses of Class java.awt.font.FontRenderContext (Java SE 17 & JDK 17)
Description: use: module: java.desktop, package: java.awt.font, class: FontRenderContext

# Uses of Class
java.awt.font.FontRenderContext

Packages that use FontRenderContext
Package
Description
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.font
Provides classes and interface relating to fonts.

- ## Uses of FontRenderContext in java.awt

  Methods in java.awt that return FontRenderContext
  Modifier and Type
  Method
  Description
  `FontRenderContext`
  FontMetrics.`getFontRenderContext()`
  Gets the `FontRenderContext` used by this `FontMetrics` object to measure text.
  `abstract FontRenderContext`
  Graphics2D.`getFontRenderContext()`
  Get the rendering context of the `Font` within this `Graphics2D` context.
  Methods in java.awt with parameters of type FontRenderContext
  Modifier and Type
  Method
  Description
  `GlyphVector`
  Font.`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`
  Font.`createGlyphVector(FontRenderContext frc, int[] glyphCodes)`
  Creates a `GlyphVector` by mapping characters to glyphs one-to-one based on the Unicode cmap in this `Font`.
  `GlyphVector`
  Font.`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`
  Font.`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`.
  `LineMetrics`
  Font.`getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc)`
  Returns a `LineMetrics` object created with the specified arguments.
  `LineMetrics`
  Font.`getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc)`
  Returns a `LineMetrics` object created with the specified arguments.
  `LineMetrics`
  Font.`getLineMetrics(String str, FontRenderContext frc)`
  Returns a `LineMetrics` object created with the specified `String` and `FontRenderContext`.
  `LineMetrics`
  Font.`getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)`
  Returns a `LineMetrics` object created with the specified arguments.
  `Rectangle2D`
  Font.`getMaxCharBounds(FontRenderContext frc)`
  Returns the bounds for the character with the maximum bounds as defined in the specified `FontRenderContext`.
  `Rectangle2D`
  Font.`getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)`
  Returns the logical bounds of the specified array of characters in the specified `FontRenderContext`.
  `Rectangle2D`
  Font.`getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)`
  Returns the logical bounds of the specified `String` in the specified `FontRenderContext`.
  `Rectangle2D`
  Font.`getStringBounds(String str, FontRenderContext frc)`
  Returns the logical bounds of the specified `String` in the specified `FontRenderContext`.
  `Rectangle2D`
  Font.`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`.
  `GlyphVector`
  Font.`layoutGlyphVector(FontRenderContext frc, char[] text, int start, int limit, int flags)`
  Returns a new `GlyphVector` object, performing full layout of the text if possible.

- ## Uses of FontRenderContext in java.awt.font

  Methods in java.awt.font that return FontRenderContext
  Modifier and Type
  Method
  Description
  `abstract FontRenderContext`
  GlyphVector.`getFontRenderContext()`
  Returns the `FontRenderContext` associated with this `GlyphVector`.
  Methods in java.awt.font with parameters of type FontRenderContext
  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.
  `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.
  `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.
  `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.
  Constructors in java.awt.font with parameters of type FontRenderContext
  Modifier
  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, 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.