Uses of Class java.awt.Font

Uses in package gnu.java.awt.print

Methods with parameter type java.awt.Font

FontMetrics
void

Methods with return type java.awt.Font

Font

Uses in package gnu.java.awt.peer.headless

Methods with parameter type java.awt.Font

FontMetrics

Methods with return type java.awt.Font

Font
HeadlessToolkit.createFont(int format, InputStream stream)
Creates a font, reading the glyph definitions from a stream.
Font[]
Returns an array of the one-point size fonts available in this environment.

Uses in package javax.swing.text

Methods with parameter type java.awt.Font

FontMetrics

Methods with return type java.awt.Font

Font
Returns the font for the text run for which this GlyphView is responsible.
Font
Returns the font for the glyphs.
Font
StyleContext.getFont(String family, int style, int size)
Font
Extracts a font from a set of attributes.
Font
Font
getFont

Uses in package java.awt

Constructors with parameter type java.awt.Font

Font.Font(Font font)
Initializes a new instance of FontMetrics for the specified font.

Fields of type java.awt.Font

Font
This is the font for which metrics will be returned.

Methods with parameter type java.awt.Font

Font
Font.getFont(String propname, Font defval)
Returns a Font object from the passed property name.
FontMetrics
Returns the font metrics for the specified font in this component.
FontMetrics
Gets the font metrics for a font.
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
Retrieves information on the rendering and metrics of the supplied font.
FontMetrics
Return the font metrics for the specified font
void
Sets the font for this component to the specified font.
void
Sets the font.
void
Sets the font for this component to the specified font.
void
Sets the font for this graphics context to the specified value.
void
Sets the font for this component to the specified font.
void
Sets the Font used for text created by this component.

Methods with return type java.awt.Font

Font
Font.createFont(int fontFormat, File file)
Creates a new font from a File object.
Font
Font.createFont(int fontFormat, InputStream is)
Creates a new font with point size 1 and PLAIN style, reading font data from the provided input stream.
Font
Font.decode(String fontspec)
Creates a Font object from the specified string, which is in one of the following formats:

  • fontname-style-pointsize
  • fontname-style
  • fontname-pointsize
  • fontname

The style should be one of BOLD, ITALIC, or BOLDITALIC.

Font
Font.deriveFont(extends AttributedCharacterIterator.Attribute, ?> attributes)
Produces a new Font based on the current font, adjusted to a new set of attributes.
Font
Font.deriveFont(float size)
Produces a new Font based on the current font, adjusted to a new size.
Font
Font.deriveFont(int style)
Produces a new Font based on the current font, adjusted to a new style.
Font
Font.deriveFont(int style, float size)
Produces a new Font based on the current font, adjusted to a new size and style.
Font
Produces a new Font based on the current font, adjusted to a new style and subjected to a new affine transformation.
Font
Produces a new Font based on the current font, subjected to a new affine transformation.
Font[]
Returns an array of the one-point size fonts available in this environment.
Font
Returns the font in use for this component.
Font
Gets the font.
Font
Returns the font that this object is creating metric information fo.
Font
Returns the current font for this graphics context.
Font
Returns the font in use for this component.
Font
Returns the Font used for text created by this component.
Font
Returns the font in use by this container.
Font
Font.getFont(extends AttributedCharacterIterator.Attribute, ?> attributes)
Returns a font appropriate for the given attribute set.
Font
Font.getFont(String propname)
Returns a Font object from the passed property name.
Font
Font.getFont(String propname, Font defval)
Returns a Font object from the passed property name.

Uses in package gnu.java.awt.font.opentype

Methods with parameter type java.awt.Font

GlyphVector
Creates a GlyphVector by mapping each character in a CharacterIterator to the corresponding glyph.

Uses in package gnu.java.awt.java2d

Constructors with parameter type java.awt.Font

Creates a new TextCacheKey with initial values.

Methods with parameter type java.awt.Font

FontMetrics
Returns the font metrics for the specified font.
void
Sets the font on this graphics object.
void
Sets the font.

Methods with return type java.awt.Font

Font
Returns the current font.

Uses in package gnu.java.awt.peer

Methods with parameter type java.awt.Font

boolean
Implementation of Font.canDisplay(char)
int
ClasspathFontPeer.canDisplayUpTo(Font font, CharacterIterator i, int start, int limit)
Implementation of Font.canDisplay(String), Font.canDisplay(char [], int, int), and Font.canDisplay(CharacterIterator, int, int).
GlyphVector
GlyphVector
Font
ClasspathFontPeer.deriveFont(Font font, float size)
Implementation of Font.deriveFont(float)
Font
ClasspathFontPeer.deriveFont(Font font, int style)
Implementation of Font.deriveFont(int)
Font
ClasspathFontPeer.deriveFont(Font font, int style, float size)
Implementation of Font.deriveFont(int,float)
Font
Font
Font
Implementation of Font.deriveFont(Map)
Map<K,V>
Implementation of Font.getAttributes()
AttributedCharacterIterator.Attribute[]
Implementation of Font.getAvailableAttributes()
byte
Implementation of Font.getBaselineFor(char)
String
Implementation of Font.getFamily()
String
Implementation of Font.getFamily(Locale)
FontMetrics
Implementation of Font.getFontMetrics()
FontMetrics
Returns the font metrics for the specified font.
String
Implementation of Font.getFontName()
String
Implementation of Font.getFontName(Locale)
String
ClasspathFontPeer.getGlyphName(Font font, int glyphIndex)
Returns a name for the specified glyph.
float
Implementation of Font.getItalicAngle()
LineMetrics
Rectangle2D
int
Implementation of Font.getMissingGlyphCode()
String
Implementation of Font.getName()
int
Implementation of Font.getNumGlyphs()
String
Implementation of Font.getPSName()
float
Implementation of Font.getSize()
int
Implementation of Font.getStyle()
String
Returns the name of this font face inside the family, for example “Light”.
AffineTransform
Implementation of Font.getTransform()
boolean
Implementation of Font.hasUniformLineMetrics()
boolean
Implementation of Font.isBold()
boolean
Implementation of Font.isItalic()
boolean
Implementation of Font.isPlain()
boolean
Implementation of Font.isTransformed()
GlyphVector
ClasspathFontPeer.layoutGlyphVector(Font font, FontRenderContext frc, char[] chars, int start, int limit, int flags)
void
Sets the font of the component.

Methods with return type java.awt.Font

Font
ClasspathFontPeer.deriveFont(Font font, float size)
Implementation of Font.deriveFont(float)
Font
ClasspathFontPeer.deriveFont(Font font, int style)
Implementation of Font.deriveFont(int)
Font
ClasspathFontPeer.deriveFont(Font font, int style, float size)
Implementation of Font.deriveFont(int,float)
Font
Font
Font
Implementation of Font.deriveFont(Map)

Uses in package javax.swing.plaf.synth

Methods with parameter type java.awt.Font

int
Returns the width of the string text for the specified font and font metrics.
Dimension
SynthGraphicsUtils.getMaximumSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the maximum size that is needed to render the label with text and icon correctly.
Dimension
SynthGraphicsUtils.getMinimumSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the minimums size that is needed to render the label with text and icon correctly.
Dimension
SynthGraphicsUtils.getPreferredSize(SynthContext ctx, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)
Calculates the preferred size that is needed to render the label with text and icon correctly.

Methods with return type java.awt.Font

Font
Font

Uses in package gnu.java.awt.peer.gtk

Constructors with parameter type java.awt.Font

FreetypeGlyphVector.FreetypeGlyphVector(Font f, char[] chars, int start, int len, FontRenderContext frc, int flags)
Create a glyphvector from a given (Freetype) font and a String.
Create a glyphvector from a given set of glyph codes.
Create a glyphvector from a given (Freetype) font and a String.

Methods with parameter type java.awt.Font

boolean
GdkFontPeer.canDisplay(Font font, int c)
Implementation of Font.canDisplay(char)
int
GdkFontPeer.canDisplayUpTo(Font font, CharacterIterator i, int start, int limit)
Implementation of Font.canDisplay(String), Font.canDisplay(char [], int, int), and Font.canDisplay(CharacterIterator, int, int).
GlyphVector
GdkFontPeer.createGlyphVector(Font font, FontRenderContext ctx, int[] glyphCodes)
GlyphVector
byte
Implementation of Font.getBaselineFor(char)
FontMetrics
FontMetrics
Implementation of Font.getFontMetrics()
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
String
GdkFontPeer.getGlyphName(Font font, int glyphIndex)
Returns a name for the specified glyph.
LineMetrics
LineMetrics
GdkFontPeer.getLineMetrics(Font font, CharacterIterator ci, int begin, int limit, FontRenderContext rc)
Rectangle2D
int
Implementation of Font.getMissingGlyphCode()
int
Implementation of Font.getNumGlyphs()
String
Returns the PostScript name of the font, defaults to the familyName if a PS name could not be retrieved.
String
Unneeded, but implemented anyway.
void
Helper method to set Font for Gtk Widget.
boolean
Implementation of Font.hasUniformLineMetrics()
GlyphVector
GdkFontPeer.layoutGlyphVector(Font font, FontRenderContext frc, char[] chars, int start, int limit, int flags)
void
void
Sets the font of the component.
void
Sets the font of the component.
void
Sets the font for this particular MenuComponent only (not any containing items, if any).

Methods with return type java.awt.Font

Font
GtkToolkit.createFont(int format, InputStream stream)
Font[]
Returns an array of the one-point size fonts available in this environment.
Font
Font
Returns the associated Font

Uses in package javax.swing.text.html

Methods with return type java.awt.Font

Font
Gets the font to use for the given set.

Uses in package javax.swing.table

Methods with parameter type java.awt.Font

FontMetrics
void

Methods with return type java.awt.Font

Font

Uses in package javax.swing.plaf

Classes derived from java.awt.Font

class
A font that is marked as UIResource, which indicates that it has been installed by a pluggable LookAndFeel.

Constructors with parameter type java.awt.Font

Constructs a new FontUIResource given an existing font.
BorderUIResource.TitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, and font.
BorderUIResource.TitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, font, and color.

Uses in package gnu.java.awt.peer.x

Methods with parameter type java.awt.Font

boolean
XFontPeer.canDisplay(Font font, int c)
Implementation of Font.canDisplay(char)
int
XFontPeer.canDisplayUpTo(Font font, CharacterIterator i, int start, int limit)
Implementation of Font.canDisplay(String), Font.canDisplay(char [], int, int), and Font.canDisplay(CharacterIterator, int, int).
GlyphVector
XFontPeer.createGlyphVector(Font font, FontRenderContext ctx, int[] glyphCodes)
GlyphVector
byte
XFontPeer.getBaselineFor(Font font, char c)
Implementation of Font.getBaselineFor(char)
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
FontMetrics
Returns the font metrics for the specified font.
String
XFontPeer.getGlyphName(Font font, int glyphIndex)
Returns a name for the specified glyph.
LineMetrics
XFontPeer.getLineMetrics(Font font, CharacterIterator ci, int begin, int limit, FontRenderContext rc)
Returns the line metrics for this font and the specified string and font render context.
Rectangle2D
int
Implementation of Font.getMissingGlyphCode()
int
Implementation of Font.getNumGlyphs()
String
Implementation of Font.getPSName()
Rectangle2D
XFontPeer.getStringBounds(Font font, CharacterIterator ci, int begin, int limit, FontRenderContext frc)
String
Returns the name of this font face inside the family, for example “Light”.
boolean
Implementation of Font.hasUniformLineMetrics()
GlyphVector
XFontPeer.layoutGlyphVector(Font font, FontRenderContext frc, char[] chars, int start, int limit, int flags)
void

Methods with return type java.awt.Font

Font
XToolkit.createFont(int format, InputStream stream)
Font[]
Returns an array of the one-point size fonts available in this environment.

Uses in package javax.accessibility

Methods with parameter type java.awt.Font

FontMetrics
Get the FontMetrics of the specified font in this component.
void
Set the font of this component.

Methods with return type java.awt.Font

Font
Get the font of this component

Uses in package gnu.java.awt

Methods with parameter type java.awt.Font

FontMetrics
Returns the font metrics object for a given font.

Methods with return type java.awt.Font

Font
Creates a font, reading the glyph definitions from a stream.
Font
Creates a Font, in a platform-specific manner.

Uses in package java.awt.peer

Methods with parameter type java.awt.Font

FontMetrics
Returns the font metrics for the specified font.
void
Sets the font of the component.
void
Set the font on this menu component peer.

Uses in package javax.swing.plaf.basic

Fields of type java.awt.Font

Font
Font to be used when displaying menu item's accelerator.

Methods with parameter type java.awt.Font

void
BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
This method paints the text for the given tab.

Uses in package java.awt.font

Constructors with parameter type java.awt.Font

Constructs a TextLayout.

Methods with return type java.awt.Font

Font
Font
MultipleMaster.deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle)
Font

Uses in package gnu.java.awt.peer.swing

Fields of type java.awt.Font

Font
The font that is set for this peer.

Methods with parameter type java.awt.Font

FontMetrics
Returns the font metrics for the specified font.
void
Sets the font of the component.
void
Sets a font for the menu bar.
void
Sets the font for this menu item.
void
Sets the font for the menu.

Uses in package javax.swing.border

Constructors with parameter type java.awt.Font

TitledBorder.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, and font.
TitledBorder.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Constructs a TitledBorder given its border, title text, horizontal alignment, vertical position, font, and color.

Fields of type java.awt.Font

Font
The font for displaying the title text.

Methods with parameter type java.awt.Font

void
Sets the font for displaying the title text.

Methods with return type java.awt.Font

Font
Returns the font that is used for displaying the title text for a given Component.
Font
Retrieves the font for displaying the title text.

Uses in package gnu.awt.xlib

Constructors with parameter type java.awt.Font

Methods with parameter type java.awt.Font

boolean
XFontPeer.canDisplay(Font font, int c)
Implementation of Font.canDisplay(char)
int
XFontPeer.canDisplayUpTo(Font font, CharacterIterator i, int start, int limit)
Implementation of Font.canDisplay(String), Font.canDisplay(char [], int, int), and Font.canDisplay(CharacterIterator, int, int).
GlyphVector
XFontPeer.createGlyphVector(Font font, FontRenderContext ctx, int[] glyphCodes)
GlyphVector
byte
XFontPeer.getBaselineFor(Font font, char c)
Implementation of Font.getBaselineFor(char)
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
Implementation of Font.getFontMetrics()
FontMetrics
FontMetrics
String
XFontPeer.getGlyphName(Font font, int glyphIndex)
Returns a name for the specified glyph.
LineMetrics
XFontPeer.getLineMetrics(Font font, CharacterIterator ci, int begin, int limit, FontRenderContext rc)
Rectangle2D
int
Implementation of Font.getMissingGlyphCode()
int
Implementation of Font.getNumGlyphs()
String
Implementation of Font.getPSName()
Rectangle2D
XFontPeer.getStringBounds(Font font, CharacterIterator ci, int begin, int limit, FontRenderContext frc)
String
Returns the name of this font face inside the family, for example “Light”.
boolean
Implementation of Font.hasUniformLineMetrics()
GlyphVector
XFontPeer.layoutGlyphVector(Font font, FontRenderContext frc, char[] chars, int start, int limit, int flags)
void
Sets the font of the component.
void

Methods with return type java.awt.Font

Font
XToolkit.createFont(int format, InputStream stream)
Creates a font, reading the glyph definitions from a stream.
Font[]
Returns an array of the one-point size fonts available in this environment.

Uses in package gnu.java.awt.peer.qt

Constructors with parameter type java.awt.Font

Initializes a new instance of FontMetrics for the specified font.

Fields of type java.awt.Font

Font

Methods with parameter type java.awt.Font

boolean
QtFontPeer.canDisplay(Font font, int c)
int
QtFontPeer.canDisplayUpTo(Font font, CharacterIterator i, int start, int limit)
GlyphVector
QtFontPeer.createGlyphVector(Font font, FontRenderContext ctx, int[] glyphCodes)
GlyphVector
byte
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
FontMetrics
FontMetrics
String
QtFontPeer.getGlyphName(Font font, int glyphIndex)
LineMetrics
QtFontPeer.getLineMetrics(Font font, CharacterIterator ci, int begin, int limit, FontRenderContext rc)
Rectangle2D
int
int
String
String
boolean
GlyphVector
QtFontPeer.layoutGlyphVector(Font font, FontRenderContext frc, char[] chars, int start, int limit, int flags)
void
Sets the font of the component.
void
void

Methods with return type java.awt.Font

Font
QtToolkit.createFont(int format, InputStream stream)
Font[]
Font

Uses in package gnu.java.awt.font

Constructors with parameter type java.awt.Font

GNUGlyphVector.GNUGlyphVector(FontDelegate fontDelegate, Font font, FontRenderContext renderContext, int[] glyphs)
Constructs a new GNUGlyphVector.

Methods with parameter type java.awt.Font

boolean
Implementation of Font.canDisplay(char)
int
OpenTypeFontPeer.canDisplayUpTo(Font font, CharacterIterator i, int start, int limit)
Implementation of Font.canDisplay(String), Font.canDisplay(char [], int, int), and Font.canDisplay(CharacterIterator, int, int).
GlyphVector
GlyphVector
Creates a GlyphVector by mapping each character in a CharacterIterator to the corresponding glyph.
GlyphVector
byte
Implementation of Font.getBaselineFor(char)
FontMetrics
Implementation of Font.getFontMetrics()
String
OpenTypeFontPeer.getGlyphName(Font font, int glyphIndex)
Returns a name for the specified glyph.
LineMetrics
Rectangle2D
int
Implementation of Font.getMissingGlyphCode()
int
Implementation of Font.getNumGlyphs()
String
Implementation of Font.getPSName()
String
Returns the name of this font face inside the family, for example “Light”.
boolean
Implementation of Font.hasUniformLineMetrics()
GlyphVector
OpenTypeFontPeer.layoutGlyphVector(Font font, FontRenderContext frc, char[] chars, int start, int limit, int flags)

Methods with return type java.awt.Font

Font
Returns the font of the glyphs in this GlyphVector.

Uses in package javax.swing

Methods with parameter type java.awt.Font

TitledBorder
BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
Add a title to an existing border, specifying the text of the title along with its positioning and font, using the default text color determined by the current look and feel.
TitledBorder
BorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
Add a title to an existing border, specifying the text of the title along with its positioning, font, and color.
FontMetrics
Returns the font metrics for a given font.
FontMetrics
Returns the font metrics for the specified font.
FontMetrics
Returns the font metrics for a specified font.
FontMetrics
Gets the FontMetrics of this object.
void
setFont
void
Set the value of the font property.
void
Sets the font for the label (this a bound property with the name 'font').
void
Does nothing since it is not possible to set the font on list children individually.
void
Sets the font of the cell.
void
Sets the current font and revalidates so the font will take effect.
void
Sets the Font of this object.

Methods with return type java.awt.Font

Font
getFont
Font
Returns the font of the JList since it is not possible to set fonts for list children individually.
Font
Returns the font of the table cell.
Font
Gets the Font of this object.
Font
Returns a font entry for the default locale.
Font
Retrieves a font from the defaults table of the current LookAndFeel.
Font
Returns a font entry for a specic locale.
Font
Retrieves a font from the defaults table of the current LookAndFeel.

Uses in package gnu.awt.j2d

Methods with parameter type java.awt.Font

FontMetrics
FontMetrics
FontMetrics
FontMetrics
void
void
void
void

Methods with return type java.awt.Font

Font

Uses in package javax.swing.tree

Fields of type java.awt.Font

Font
Font to paint with, null indicates font of renderer is to be used.

Methods with parameter type java.awt.Font

void
Sets the font to edit with. null indicates the renderers font should be used.
void
Sets the font.

Methods with return type java.awt.Font

Font
Gets the font used for editing.
Font
Gets the font of this component.
Font
Returns the current font.