| Modifier and Type | Field and Description |
|---|---|
private static int |
BITMAP_HEIGHT |
private static int |
BITMAP_WIDTH |
private CGRect |
bounds |
private static boolean |
CACHE_CONTEXT |
private static long |
cachedContextRef |
private boolean |
drawShapes |
private int |
glyphCode |
private static long |
GRAY_COLORSPACE |
private static boolean |
LCD_CONTEXT |
private static int |
MAX_SIZE |
private static long |
RGB_COLORSPACE |
private CTFontStrike |
strike |
private double |
xAdvance |
private double |
yAdvance |
| Constructor and Description |
|---|
CTGlyph(CTFontStrike strike,
int glyphCode,
boolean drawShapes) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkBounds() |
private long |
createContext(boolean lcd,
int width,
int height) |
float |
getAdvance() |
RectBounds |
getBBox() |
private long |
getCachedContext(boolean lcd) |
int |
getGlyphCode() |
int |
getHeight() |
private byte[] |
getImage(double x,
double y,
int w,
int h,
int subPixel) |
int |
getOriginX() |
int |
getOriginY() |
byte[] |
getPixelData() |
byte[] |
getPixelData(int subPixel)
Returns the glyph mask at the subpixel position specified by subPixel.
|
float |
getPixelXAdvance() |
float |
getPixelYAdvance() |
Shape |
getShape() |
int |
getWidth() |
boolean |
isLCDGlyph() |
private CTFontStrike strike
private int glyphCode
private CGRect bounds
private double xAdvance
private double yAdvance
private boolean drawShapes
private static boolean LCD_CONTEXT
private static boolean CACHE_CONTEXT
private static long cachedContextRef
private static final int BITMAP_WIDTH
private static final int BITMAP_HEIGHT
private static final int MAX_SIZE
private static final long GRAY_COLORSPACE
private static final long RGB_COLORSPACE
CTGlyph(CTFontStrike strike, int glyphCode, boolean drawShapes)
public int getGlyphCode()
getGlyphCode in interface Glyphpublic RectBounds getBBox()
private void checkBounds()
private long createContext(boolean lcd,
int width,
int height)
private long getCachedContext(boolean lcd)
private byte[] getImage(double x,
double y,
int w,
int h,
int subPixel)
public byte[] getPixelData()
getPixelData in interface Glyphpublic byte[] getPixelData(int subPixel)
GlyphgetPixelData in interface GlyphFontStrike.getQuantizedPosition(com.sun.javafx.geom.Point2D)public float getAdvance()
getAdvance in interface Glyphpublic float getPixelXAdvance()
getPixelXAdvance in interface Glyphpublic float getPixelYAdvance()
getPixelYAdvance in interface Glyphpublic int getOriginX()
getOriginX in interface Glyphpublic int getOriginY()
getOriginY in interface Glyphpublic boolean isLCDGlyph()
isLCDGlyph in interface Glyph