Uses of Class
java.awt.Font
-
Packages that use Font Package Description java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. -
-
Uses of Font in java.awt
Fields in java.awt declared as Font Modifier and Type Field and Description protected Font
FontMetrics. font
The actualFont
from which the font metrics are created.Methods in java.awt that return Font Modifier and Type Method and Description static Font
Font. createFont(int fontFormat, java.io.File fontFile)
Returns a newFont
using the specified font type and the specified font file.static Font
Font. createFont(int fontFormat, java.io.InputStream fontStream)
Returns a newFont
using the specified font type and input data.static Font
Font. decode(java.lang.String str)
Returns theFont
that thestr
argument describes.Font
Font. deriveFont(java.awt.geom.AffineTransform trans)
Creates a newFont
object by replicating the currentFont
object and applying a new transform to it.Font
Font. deriveFont(float size)
Creates a newFont
object by replicating the currentFont
object and applying a new size to it.Font
Font. deriveFont(int style)
Creates a newFont
object by replicating the currentFont
object and applying a new style to it.Font
Font. deriveFont(int style, java.awt.geom.AffineTransform trans)
Creates a newFont
object by replicating thisFont
object and applying a new style and transform.Font
Font. deriveFont(int style, float size)
Creates a newFont
object by replicating thisFont
object and applying a new style and size.Font
Font. deriveFont(java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute,?> attributes)
Creates a newFont
object by replicating the currentFont
object and applying a new set of font attributes to it.abstract Font[]
GraphicsEnvironment. getAllFonts()
Returns an array containing a one-point size instance of all fonts available in thisGraphicsEnvironment
.Font
MenuContainer. getFont()
Font
MenuComponent. getFont()
Gets the font used for this menu component.Font
MenuComponent.AccessibleAWTMenuComponent. getFont()
Gets theFont
of this object.Font
List.AccessibleAWTList.AccessibleAWTListChild. getFont()
Get the Font of this object.abstract Font
Graphics. getFont()
Gets the current font.Font
FontMetrics. getFont()
Gets theFont
described by thisFontMetrics
object.Font
Component. getFont()
Gets the font of this component.Font
Component.AccessibleAWTComponent. getFont()
Gets theFont
of this object.static Font
Font. getFont(java.util.Map<? extends java.text.AttributedCharacterIterator.Attribute,?> attributes)
Returns aFont
appropriate to the attributes.static Font
Font. getFont(java.lang.String nm)
Returns aFont
object from the system properties list.static Font
Font. getFont(java.lang.String nm, Font font)
Gets the specifiedFont
from the system properties list.Methods in java.awt with parameters of type Font Modifier and Type Method and Description static Font
Font. getFont(java.lang.String nm, Font font)
Gets the specifiedFont
from the system properties list.abstract FontMetrics
Toolkit. getFontMetrics(Font font)
Deprecated. As of JDK version 1.2, replaced by theFont
methodgetLineMetrics
.FontMetrics
MenuComponent.AccessibleAWTMenuComponent. getFontMetrics(Font f)
Gets theFontMetrics
of this object.FontMetrics
List.AccessibleAWTList.AccessibleAWTListChild. getFontMetrics(Font f)
Get the FontMetrics of this object.abstract FontMetrics
Graphics. getFontMetrics(Font f)
Gets the font metrics for the specified font.FontMetrics
Component. getFontMetrics(Font font)
Gets the font metrics for the specified font.FontMetrics
Component.AccessibleAWTComponent. getFontMetrics(Font f)
Gets theFontMetrics
of this object.boolean
GraphicsEnvironment. registerFont(Font font)
Registers a createdFont
in thisGraphicsEnvironment
.void
MenuComponent. setFont(Font f)
Sets the font to be used for this menu component to the specified font.void
MenuComponent.AccessibleAWTMenuComponent. setFont(Font f)
Sets theFont
of this object.void
List.AccessibleAWTList.AccessibleAWTListChild. setFont(Font f)
Set the Font of this object.abstract void
Graphics. setFont(Font font)
Sets this graphics context's font to the specified font.void
Container. setFont(Font f)
Sets the font of this container.void
Component. setFont(Font f)
Sets the font of this component.void
Component.AccessibleAWTComponent. setFont(Font f)
Sets theFont
of this object.Constructors in java.awt with parameters of type Font Constructor and Description Font(Font font)
Creates a newFont
from the specifiedfont
.FontMetrics(Font font)
Creates a newFontMetrics
object for finding out height and width information about the specifiedFont
and specific character glyphs in thatFont
.
-