public final class WCFontPerfLogger extends WCFont
| Modifier and Type | Field and Description |
|---|---|
private WCFont |
fnt |
private static java.util.logging.Logger |
log |
private static PerfLogger |
logger |
| Constructor and Description |
|---|
WCFontPerfLogger(WCFont fnt) |
| Modifier and Type | Method and Description |
|---|---|
WCFont |
deriveFont(float size) |
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
float |
getAscent() |
float |
getCapHeight() |
float |
getDescent() |
float[] |
getGlyphBoundingBox(int glyph) |
int[] |
getGlyphCodes(char[] chars) |
WCGlyphBuffer |
getGlyphsAndAdvances(java.lang.String str,
int from,
int to,
boolean rtl) |
double |
getGlyphWidth(int glyph) |
float |
getLineGap() |
float |
getLineSpacing() |
int |
getOffsetForPosition(java.lang.String str,
float x) |
java.lang.Object |
getPlatformFont() |
double[] |
getStringBounds(java.lang.String str,
int from,
int to,
boolean rtl) |
double |
getStringWidth(java.lang.String str) |
float |
getXHeight() |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
hasUniformLineMetrics() |
static boolean |
isEnabled() |
static void |
log() |
static void |
reset() |
private static final java.util.logging.Logger log
private static final PerfLogger logger
private final WCFont fnt
public WCFontPerfLogger(WCFont fnt)
public static boolean isEnabled()
public static void log()
public static void reset()
public java.lang.Object getPlatformFont()
getPlatformFont in class WCFontpublic WCFont deriveFont(float size)
deriveFont in class WCFontpublic int getOffsetForPosition(java.lang.String str,
float x)
getOffsetForPosition in class WCFontpublic WCGlyphBuffer getGlyphsAndAdvances(java.lang.String str, int from, int to, boolean rtl)
getGlyphsAndAdvances in class WCFontpublic int[] getGlyphCodes(char[] chars)
getGlyphCodes in class WCFontpublic float getXHeight()
getXHeight in class WCFontpublic double getGlyphWidth(int glyph)
getGlyphWidth in class WCFontpublic float[] getGlyphBoundingBox(int glyph)
getGlyphBoundingBox in class WCFontpublic double getStringWidth(java.lang.String str)
getStringWidth in class WCFontpublic double[] getStringBounds(java.lang.String str,
int from,
int to,
boolean rtl)
getStringBounds in class WCFontpublic int hashCode()
WCFontpublic boolean equals(java.lang.Object object)
WCFontpublic float getDescent()
getDescent in class WCFontpublic float getLineSpacing()
getLineSpacing in class WCFontpublic float getLineGap()
getLineGap in class WCFontpublic boolean hasUniformLineMetrics()
hasUniformLineMetrics in class WCFontpublic float getCapHeight()
getCapHeight in class WCFont