public abstract class WCFont extends Ref
Constructor and Description |
---|
WCFont() |
Modifier and Type | Method and Description |
---|---|
abstract WCFont |
deriveFont(float size) |
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
abstract float |
getAscent() |
abstract float |
getCapHeight() |
abstract float |
getDescent() |
abstract float[] |
getGlyphBoundingBox(int glyph) |
abstract int[] |
getGlyphCodes(char[] chars) |
abstract WCGlyphBuffer |
getGlyphsAndAdvances(java.lang.String str,
int from,
int to,
boolean rtl) |
abstract double |
getGlyphWidth(int glyph) |
abstract float |
getLineGap() |
abstract float |
getLineSpacing() |
abstract int |
getOffsetForPosition(java.lang.String str,
float x) |
abstract java.lang.Object |
getPlatformFont() |
abstract double[] |
getStringBounds(java.lang.String str,
int from,
int to,
boolean rtl) |
abstract double |
getStringWidth(java.lang.String str) |
abstract float |
getXHeight() |
int |
hashCode()
Returns a hash code value for the object.
|
abstract boolean |
hasUniformLineMetrics() |
public abstract java.lang.Object getPlatformFont()
public abstract WCFont deriveFont(float size)
public abstract int getOffsetForPosition(java.lang.String str, float x)
public abstract WCGlyphBuffer getGlyphsAndAdvances(java.lang.String str, int from, int to, boolean rtl)
public abstract int[] getGlyphCodes(char[] chars)
public abstract float getXHeight()
public abstract double getGlyphWidth(int glyph)
public abstract float[] getGlyphBoundingBox(int glyph)
public abstract double[] getStringBounds(java.lang.String str, int from, int to, boolean rtl)
public abstract double getStringWidth(java.lang.String str)
public int hashCode()
hashCode
in class java.lang.Object
Object.equals(java.lang.Object)
,
Hashtable
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the reference object with which to comparetrue
if this object is the same as the object argument;
false
otherwise.public abstract float getAscent()
public abstract float getDescent()
public abstract float getLineSpacing()
public abstract float getLineGap()
public abstract boolean hasUniformLineMetrics()
public abstract float getCapHeight()