public class CompositeStrike extends java.lang.Object implements FontStrike
Modifier and Type | Field and Description |
---|---|
private int |
aaMode |
private FontStrikeDesc |
desc |
(package private) DisposerRecord |
disposer |
private CompositeFontResource |
fontResource |
private PrismMetrics |
metrics |
private float |
size |
private FontStrike |
slot0Strike |
private FontStrike[] |
strikeSlots |
(package private) BaseTransform |
transform |
Constructor and Description |
---|
CompositeStrike(CompositeFontResource fontResource,
float size,
BaseTransform graphicsTransform,
int aaMode,
FontStrikeDesc desc) |
Modifier and Type | Method and Description |
---|---|
void |
clearDesc() |
boolean |
drawAsShapes() |
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
|
FontResource |
getFontResource() |
Glyph |
getGlyph(char symbol) |
Glyph |
getGlyph(int glyphCode) |
Metrics |
getMetrics() |
Shape |
getOutline(GlyphList gl,
BaseTransform transform) |
(package private) void |
getOutline(GlyphList gl,
BaseTransform transform,
Path2D p) |
int |
getQuantizedPosition(Point2D point)
Modifies the point argument to the quantized position suitable for the
underlying glyph rasterizer.
|
float |
getSize() |
FontStrike |
getStrikeSlot(int slot) |
int |
getStrikeSlotForGlyph(int glyphCode) |
BaseTransform |
getTransform()
Trusting caller to NOT mutate the returned result, to
avoid a clone.
|
private CompositeFontResource fontResource
private float size
private int aaMode
BaseTransform transform
private FontStrike slot0Strike
private FontStrike[] strikeSlots
private FontStrikeDesc desc
DisposerRecord disposer
private PrismMetrics metrics
CompositeStrike(CompositeFontResource fontResource, float size, BaseTransform graphicsTransform, int aaMode, FontStrikeDesc desc)
public void clearDesc()
clearDesc
in interface FontStrike
public int getAAMode()
getAAMode
in interface FontStrike
public BaseTransform getTransform()
getTransform
in interface FontStrike
public FontStrike getStrikeSlot(int slot)
public FontResource getFontResource()
getFontResource
in interface FontStrike
public int getStrikeSlotForGlyph(int glyphCode)
public float getSize()
getSize
in interface FontStrike
public boolean drawAsShapes()
drawAsShapes
in interface FontStrike
public Metrics getMetrics()
getMetrics
in interface FontStrike
public Glyph getGlyph(char symbol)
getGlyph
in interface FontStrike
public Glyph getGlyph(int glyphCode)
getGlyph
in interface FontStrike
public float getCharAdvance(char ch)
getCharAdvance
in interface FontStrike
ch
- charpublic 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 Shape getOutline(GlyphList gl, BaseTransform transform)
getOutline
in interface FontStrike
void getOutline(GlyphList gl, BaseTransform transform, Path2D p)