public abstract class PrismFontStrike<T extends PrismFontFile> extends Object implements FontStrike
Modifier and Type | Field and Description |
---|---|
protected boolean |
drawShapes |
Modifier | Constructor and Description |
---|---|
protected |
PrismFontStrike(T fontResource,
float size,
BaseTransform tx,
int aaMode,
FontStrikeDesc desc) |
Modifier and Type | Method and Description |
---|---|
void |
clearDesc() |
protected abstract DisposerRecord |
createDisposer(FontStrikeDesc desc) |
protected abstract Glyph |
createGlyph(int glyphCode) |
protected abstract Path2D |
createGlyphOutline(int glyphCode) |
boolean |
drawAsShapes() |
boolean |
equals(Object obj) |
int |
getAAMode() |
float |
getCharAdvance(char ch)
Access to individual character advances are frequently needed for layout
understand that advance may vary for single glyph if ligatures or kerning
are enabled
|
T |
getFontResource() |
Glyph |
getGlyph(char ch) |
Glyph |
getGlyph(int glyphCode) |
Metrics |
getMetrics() |
Shape |
getOutline(GlyphList gl,
BaseTransform transform) |
int |
getQuantizedPosition(Point2D point)
Modifies the point argument to the quantized position suitable for the
underlying glyph rasterizer.
|
float |
getSize()
Returns the notional size of this strike with
the graphics transform factored out.
|
BaseTransform |
getTransform() |
int |
hashCode() |
String |
toString() |
protected PrismFontStrike(T fontResource, float size, BaseTransform tx, int aaMode, FontStrikeDesc desc)
protected abstract DisposerRecord createDisposer(FontStrikeDesc desc)
public void clearDesc()
clearDesc
in interface FontStrike
public float getSize()
getSize
in interface FontStrike
public Metrics getMetrics()
getMetrics
in interface FontStrike
public T getFontResource()
getFontResource
in interface FontStrike
public boolean drawAsShapes()
drawAsShapes
in interface FontStrike
public int getAAMode()
getAAMode
in interface FontStrike
public BaseTransform getTransform()
getTransform
in interface FontStrike
public int getQuantizedPosition(Point2D point)
FontStrike
Glyph.getPixelData(int)
in order to obtain the correct glyph mask
for the given point.getQuantizedPosition
in interface FontStrike
public float getCharAdvance(char ch)
getCharAdvance
in interface FontStrike
ch
- charpublic Glyph getGlyph(char ch)
getGlyph
in interface FontStrike
protected abstract Glyph createGlyph(int glyphCode)
public Glyph getGlyph(int glyphCode)
getGlyph
in interface FontStrike
protected abstract Path2D createGlyphOutline(int glyphCode)
public Shape getOutline(GlyphList gl, BaseTransform transform)
getOutline
in interface FontStrike
Copyright © 2020. All rights reserved.