public class T3Glyph extends PdfGlyph
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.failedOnHinting, FontBB_HEIGHT, FontBB_WIDTH, FontBB_X, FontBB_Y, isHinted| Constructor and Description |
|---|
T3Glyph(ObjectInput os)
recreate T3 glyph from serialized data
|
T3Glyph(T3Renderer glyphDisplay,
int x,
int y,
boolean lockColours)
create the glyph as a wrapper around the DynamicVectorRenderer
|
| Modifier and Type | Method and Description |
|---|---|
float |
getmaxWidth()
Returns the max width
|
boolean |
ignoreColors()
flag if use internal colours or text colour
|
void |
render(int type,
Graphics2D g2,
float scaling,
boolean isFormGlyph)
draw the t3 glyph
|
void |
setScaling(float glyphScaling) |
void |
setT3Colors(PdfPaint strokeColor,
PdfPaint nonstrokeColor,
boolean lockColours)
set colors for display
|
void |
writePathsToStream(ObjectOutput os)
method to serialize all the paths in this object.
|
containsBrokenData, failedOnHinting, getGlyphNumber, getPath, getShape, hasHinting, hasHintingApplied, isFailedOnHinting, setGlyphNumber, setStrokedOnly, setWidthpublic T3Glyph(T3Renderer glyphDisplay, int x, int y, boolean lockColours)
public T3Glyph(ObjectInput os)
public void setScaling(float glyphScaling)
public void render(int type,
Graphics2D g2,
float scaling,
boolean isFormGlyph)
public float getmaxWidth()
getmaxWidth in class PdfGlyphpublic void setT3Colors(PdfPaint strokeColor, PdfPaint nonstrokeColor, boolean lockColours)
setT3Colors in class PdfGlyphpublic boolean ignoreColors()
ignoreColors in class PdfGlyphpublic void writePathsToStream(ObjectOutput os) throws IOException
NOT PART OF API and subject to change (DO NOT USE)
os - - ObjectOutput to write toIOExceptionCopyright © 2017. All rights reserved.