public class T1Glyph extends BaseT1Glyph
defines the current shape which is created by command stream
This class is NOT part of the API
. Shapes can be drawn onto pdf or used as a clip on other image/shape/text. Shape is built up by storing commands and then turning these commands into a shape. Has to be done this way as Winding rule is not necessarily declared at start.glyfwidth, isStroked, strokedPositionsfailedOnHinting, FontBB_HEIGHT, FontBB_WIDTH, FontBB_X, FontBB_Y, isHinted| Constructor and Description |
|---|
T1Glyph(Vector_Path cached_current_path)
store scaling factors
|
| Modifier and Type | Method and Description |
|---|---|
void |
flushArea() |
int |
getFontBB(int type)
retrun fontBounds paramter where type is a contant in PdfGlyh
|
Area |
getShape()
return shape of glyph
|
void |
render(int text_fill_type,
Graphics2D g2,
float scaling,
boolean isFormGlyph)
turn shape commands into a Shape object, storing info for later.
|
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.
|
getmaxWidth, setStrokedOnly, setWidthcontainsBrokenData, failedOnHinting, getGlyphNumber, getPath, hasHinting, hasHintingApplied, ignoreColors, isFailedOnHinting, setGlyphNumber, setT3Colorspublic T1Glyph(Vector_Path cached_current_path)
public void render(int text_fill_type,
Graphics2D g2,
float scaling,
boolean isFormGlyph)
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 flushArea()
public int getFontBB(int type)
PdfGlyphCopyright © 2017. All rights reserved.