class CTFontStrike extends PrismFontStrike<CTFontFile>
| Modifier and Type | Field and Description |
|---|---|
private long |
fontRef |
(package private) CGAffineTransform |
matrix |
private static boolean |
SUBPIXEL |
(package private) static float |
SUBPIXEL2_SIZE |
(package private) static float |
SUBPIXEL3_SIZE |
(package private) static float |
SUBPIXEL4_SIZE |
drawShapes| Constructor and Description |
|---|
CTFontStrike(CTFontFile fontResource,
float size,
BaseTransform graphicsTransform,
int aaMode,
FontStrikeDesc desc) |
| Modifier and Type | Method and Description |
|---|---|
protected DisposerRecord |
createDisposer(FontStrikeDesc desc) |
protected Glyph |
createGlyph(int glyphCode) |
protected Path2D |
createGlyphOutline(int glyphCode) |
(package private) CGRect |
getBBox(int glyphCode) |
(package private) long |
getFontRef() |
int |
getQuantizedPosition(Point2D point)
Modifies the point argument to the quantized position suitable for the
underlying glyph rasterizer.
|
(package private) float |
getSubPixelPosition(int index) |
(package private) boolean |
isSubPixelGlyph() |
clearDesc, drawAsShapes, equals, getAAMode, getCharAdvance, getFontResource, getGlyph, getGlyph, getMetrics, getOutline, getSize, getTransform, hashCode, toStringprivate long fontRef
CGAffineTransform matrix
static final float SUBPIXEL4_SIZE
static final float SUBPIXEL3_SIZE
static final float SUBPIXEL2_SIZE
private static final boolean SUBPIXEL
CTFontStrike(CTFontFile fontResource, float size, BaseTransform graphicsTransform, int aaMode, FontStrikeDesc desc)
long getFontRef()
protected DisposerRecord createDisposer(FontStrikeDesc desc)
createDisposer in class PrismFontStrike<CTFontFile>protected Glyph createGlyph(int glyphCode)
createGlyph in class PrismFontStrike<CTFontFile>public int getQuantizedPosition(Point2D point)
FontStrikeGlyph.getPixelData(int) in order to obtain the correct glyph mask
for the given point.getQuantizedPosition in interface FontStrikegetQuantizedPosition in class PrismFontStrike<CTFontFile>float getSubPixelPosition(int index)
boolean isSubPixelGlyph()
protected Path2D createGlyphOutline(int glyphCode)
createGlyphOutline in class PrismFontStrike<CTFontFile>CGRect getBBox(int glyphCode)