public final class WCFontPerfLogger extends WCFont
| Constructor and Description |
|---|
WCFontPerfLogger(WCFont fnt) |
| Modifier and Type | Method and Description |
|---|---|
WCFont |
deriveFont(float size) |
boolean |
equals(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(String str,
int from,
int to,
boolean rtl) |
double |
getGlyphWidth(int glyph) |
float |
getLineGap() |
float |
getLineSpacing() |
int |
getOffsetForPosition(String str,
float x) |
Object |
getPlatformFont() |
double[] |
getStringBounds(String str,
int from,
int to,
boolean rtl) |
double |
getStringWidth(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() |
public WCFontPerfLogger(WCFont fnt)
public static boolean isEnabled()
public static void log()
public static void reset()
public Object getPlatformFont()
getPlatformFont in class WCFontpublic WCFont deriveFont(float size)
deriveFont in class WCFontpublic int getOffsetForPosition(String str, float x)
getOffsetForPosition in class WCFontpublic WCGlyphBuffer getGlyphsAndAdvances(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(String str)
getStringWidth in class WCFontpublic double[] getStringBounds(String str, int from, int to, boolean rtl)
getStringBounds in class WCFontpublic int hashCode()
WCFonthashCode in class WCFontObject.equals(java.lang.Object),
Hashtablepublic boolean equals(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 WCFontCopyright © 2025. All rights reserved.