public class FontInfo
extends java.lang.Object
Constructor and Description |
---|
FontInfo(java.lang.String familyName,
int size,
int style)
Deprecated.
|
FontInfo(java.lang.String familyName,
int size,
int style,
boolean useLigatures)
Deprecated.
|
FontInfo(java.lang.String familyName,
int size,
int style,
boolean useLigatures,
java.awt.font.FontRenderContext fontRenderContext)
To get valid font metrics from this
FontInfo instance, pass valid FontRenderContext here as a parameter. |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDisplay(java.awt.Font font,
int codePoint,
boolean disableFontFallback) |
boolean |
canDisplay(int codePoint) |
int |
charWidth(int codePoint) |
float |
charWidth2D(int codePoint) |
boolean |
equals(java.lang.Object o) |
java.awt.FontMetrics |
fontMetrics() |
java.awt.Font |
getFont() |
static java.awt.FontMetrics |
getFontMetrics(java.awt.Font font,
java.awt.font.FontRenderContext fontRenderContext) |
java.awt.font.FontRenderContext |
getFontRenderContext() |
static java.awt.font.FontRenderContext |
getFontRenderContext(java.awt.Component component) |
int |
getSize() |
int |
getStyle() |
int |
hashCode() |
@Deprecated public FontInfo(java.lang.String familyName, int size, int style)
FontInfo(String, int, int, boolean, FontRenderContext)
instead.@Deprecated public FontInfo(java.lang.String familyName, int size, int style, boolean useLigatures)
FontInfo(String, int, int, boolean, FontRenderContext)
instead.public FontInfo(java.lang.String familyName, int size, int style, boolean useLigatures, java.awt.font.FontRenderContext fontRenderContext)
FontInfo
instance, pass valid FontRenderContext
here as a parameter.public boolean canDisplay(int codePoint)
public static boolean canDisplay(java.awt.Font font, int codePoint, boolean disableFontFallback)
public java.awt.Font getFont()
public int charWidth(int codePoint)
public float charWidth2D(int codePoint)
public java.awt.FontMetrics fontMetrics()
public static java.awt.FontMetrics getFontMetrics(java.awt.Font font, java.awt.font.FontRenderContext fontRenderContext)
public static java.awt.font.FontRenderContext getFontRenderContext(java.awt.Component component)
public int getSize()
public int getStyle()
public java.awt.font.FontRenderContext getFontRenderContext()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object