public class Type1CharString extends Object
Modifier | Constructor and Description |
---|---|
protected |
Type1CharString(org.apache.fontbox.type1.Type1CharStringReader font,
String fontName,
String glyphName)
Constructor for use in subclasses.
|
|
Type1CharString(org.apache.fontbox.type1.Type1CharStringReader font,
String fontName,
String glyphName,
List<Object> sequence)
Constructs a new Type1CharString object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addCommand(List<Number> numbers,
org.apache.fontbox.cff.CharStringCommand command)
Add a command to the type1 sequence.
|
Rectangle2D |
getBounds()
Returns the bounds of the renderer path.
|
protected Object |
getLastSequenceEntry()
Returns the last entry of the underlying type1 sequence.
|
String |
getName() |
GeneralPath |
getPath()
Returns the path of the character.
|
List<Object> |
getType1Sequence() |
int |
getWidth()
Returns the advance width of the glyph.
|
protected boolean |
isSequenceEmpty()
Indicates if the underlying type1 sequence is empty.
|
String |
toString() |
public Type1CharString(org.apache.fontbox.type1.Type1CharStringReader font, String fontName, String glyphName, List<Object> sequence)
font
- Parent Type 1 CharString font.fontName
- Name of the font.glyphName
- Name of the glyph.sequence
- Type 1 char string sequencepublic String getName()
public Rectangle2D getBounds()
public int getWidth()
public GeneralPath getPath()
protected void addCommand(List<Number> numbers, org.apache.fontbox.cff.CharStringCommand command)
numbers
- the parameters of the command to be addedcommand
- the command to be addedprotected boolean isSequenceEmpty()
protected Object getLastSequenceEntry()
Copyright © 2024. All rights reserved.