Package com.tom_roush.fontbox.cff
Class Type2CharString
- java.lang.Object
-
- com.tom_roush.fontbox.cff.Type1CharString
-
- com.tom_roush.fontbox.cff.Type2CharString
-
- Direct Known Subclasses:
CIDKeyedType2CharString
public class Type2CharString extends Type1CharString
Represents a Type 2 CharString by converting it into an equivalent Type 1 CharString.
-
-
Field Summary
-
Fields inherited from class com.tom_roush.fontbox.cff.Type1CharString
commandCount, type1Sequence
-
-
Constructor Summary
Constructors Constructor Description Type2CharString(Type1CharStringReader font, String fontName, String glyphName, int gid, List<Object> sequence, int defaultWidthX, int nomWidthX)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGID()Return the GID (glyph id) of this charstring.List<Object>getType2Sequence()Returns the Type 2 charstring sequence.-
Methods inherited from class com.tom_roush.fontbox.cff.Type1CharString
getBounds, getName, getPath, getType1Sequence, getWidth, toString
-
-
-
-
Constructor Detail
-
Type2CharString
public Type2CharString(Type1CharStringReader font, String fontName, String glyphName, int gid, List<Object> sequence, int defaultWidthX, int nomWidthX)
Constructor.- Parameters:
font- Parent CFF fontfontName- font nameglyphName- glyph name (or CID as hex string)gid- GIDsequence- Type 2 char string sequencedefaultWidthX- default widthnomWidthX- nominal width
-
-