public class TTGlyph extends BaseTTGlyph implements Serializable
BPoint1, BPoint2, compCount, compMaxX, compMaxY, compMinX, compMinY, containsBrokenGlyfData, contourCount, contours, currentInstructionDepth, curves, endPtIndices, glyfX, glyfY, instructions, isComposite, leftSideBearing, maxX, maxY, minX, minY, pixelSize, scale01, scale01Values, scale10, scale10Values, scaledX, scaledY, ttHintingRequired, unitsPerEm, useHinting, xscale, xscaleValues, xtranslate, xtranslateValues, yscale, yscaleValues, ytranslate, ytranslateValuesfailedOnHinting, FontBB_HEIGHT, FontBB_WIDTH, FontBB_X, FontBB_Y, isHinted| Constructor and Description |
|---|
TTGlyph(Glyf currentGlyf,
FontFile2 glyfTable,
Hmtx currentHmtx,
int idx,
float unitsPerEm,
String baseFontName)
Unhinted constructor
|
TTGlyph(Glyf currentGlyf,
FontFile2 glyfTable,
Hmtx currentHmtx,
int idx,
float unitsPerEm,
TTVM vm)
Hinted constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
createPaths(int[] pX,
int[] pY,
boolean[] onCurve,
boolean[] endOfContour,
int endIndex)
create the actual shape
|
void |
flushArea() |
Area |
getShape()
return outline of shape
|
void |
render(int type,
Graphics2D g2,
float scaling,
boolean isFormGlyph)
draw the glyph
|
void |
setPaths(Vector_Path vp)
method to set the paths after the object has be deserialized.
|
void |
writePathsToStream(ObjectOutput os)
method to serialize all the paths in this object.
|
containsBrokenData, getFontBB, hasHintingApplied, isTTHintingRequired, readComplexGlyph, readGlyph, readSimpleGlyph, scalerfailedOnHinting, getGlyphNumber, getmaxWidth, getPath, hasHinting, ignoreColors, isFailedOnHinting, setGlyphNumber, setStrokedOnly, setT3Colors, setWidthpublic TTGlyph(Glyf currentGlyf, FontFile2 glyfTable, Hmtx currentHmtx, int idx, float unitsPerEm, String baseFontName)
public void setPaths(Vector_Path vp)
NOT PART OF API and subject to change (DO NOT USE)
vp - - the Vector_Path to setpublic void writePathsToStream(ObjectOutput os) throws IOException
NOT PART OF API and subject to change (DO NOT USE)
os - - ObjectOutput to write toIOExceptionpublic void render(int type,
Graphics2D g2,
float scaling,
boolean isFormGlyph)
PdfGlyphpublic void createPaths(int[] pX,
int[] pY,
boolean[] onCurve,
boolean[] endOfContour,
int endIndex)
createPaths in class BaseTTGlyphpublic void flushArea()
Copyright © 2017. All rights reserved.