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 WCFont
public WCFont deriveFont(float size)
deriveFont
in class WCFont
public int getOffsetForPosition(java.lang.String str, float x)
getOffsetForPosition
in class WCFont
public WCGlyphBuffer getGlyphsAndAdvances(java.lang.String str, int from, int to, boolean rtl)
getGlyphsAndAdvances
in class WCFont
public int[] getGlyphCodes(char[] chars)
getGlyphCodes
in class WCFont
public float getXHeight()
getXHeight
in class WCFont
public double getGlyphWidth(int glyph)
getGlyphWidth
in class WCFont
public float[] getGlyphBoundingBox(int glyph)
getGlyphBoundingBox
in class WCFont
public double getStringWidth(java.lang.String str)
getStringWidth
in class WCFont
public double[] getStringBounds(java.lang.String str, int from, int to, boolean rtl)
getStringBounds
in class WCFont
public int hashCode()
WCFont
public boolean equals(java.lang.Object object)
WCFont
public float getDescent()
getDescent
in class WCFont
public float getLineSpacing()
getLineSpacing
in class WCFont
public float getLineGap()
getLineGap
in class WCFont
public boolean hasUniformLineMetrics()
hasUniformLineMetrics
in class WCFont
public float getCapHeight()
getCapHeight
in class WCFont