|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.cff.T2CharString
org.extex.font.format.xtf.tables.cff.T2Operator
org.extex.font.format.xtf.tables.cff.T2TopDICTOperator
org.extex.font.format.xtf.tables.cff.T2TDONumber
org.extex.font.format.xtf.tables.cff.T2TDOEncoding
public class T2TDOEncoding
Encoding.
Note: The encoding table in a CFF font is indexed by glyph index; the first encoded glyph index is 1.
Encoding data is located via the offset operand to the Encoding operator in the Top DICT. Only one Encoding operator can be specified per font except for CIDFonts which specify no encoding. A glyph's encoding is specified by a 1-byte code that permits values in the range 0-255. Each encoding is described by a format-type identifier byte followed by format-specific data. Two formats are currently defined.
| Field Summary | |
|---|---|
static int |
EXPERT_ENCODING
ExpertEncoding |
static int |
FONT_DEFINED
FontDefined |
static int |
STANDARD_ENCODING
StandardEncoding |
| Fields inherited from class org.extex.font.format.xtf.tables.cff.T2CharString |
|---|
ESCAPE, ESCAPE_BYTE, T2CALLGSUBR, T2CALLSUBR, T2CNTRMASK, T2ENDCHAR, T2FLEX, T2FLEX1, T2HFLEX, T2HFLEX1, T2HHCURVETO, T2HINTMASK, T2HLINETO, T2HMOVETO, T2HSTEM, T2HSTEMHM, T2HVCURVETO, T2RCURVELINE, T2RETURN, T2RLINECURVE, T2RLINETO, T2RMOVETO, T2RRCURVETO, T2VHCURVETO, T2VLINETO, T2VMOVETO, T2VSTEM, T2VSTEMHM, T2VVCURVETO, TYPE_CALLGSUBR, TYPE_CALLSUBR, TYPE_CNTRMASK, TYPE_ENDCHAR, TYPE_FLEX, TYPE_FLEX1, TYPE_HFLEX, TYPE_HFLEX1, TYPE_HHCURVETO, TYPE_HINTMASK, TYPE_HLINETO, TYPE_HMOVETO, TYPE_HSTEM, TYPE_HSTEMHM, TYPE_HVCURVETO, TYPE_RCURVELINE, TYPE_RETURN, TYPE_RLINECURVE, TYPE_RLINETO, TYPE_RMOVETO, TYPE_RRCURVETO, TYPE_VHCURVETO, TYPE_VLINETO, TYPE_VMOVETO, TYPE_VSTEM, TYPE_VSTEMHM, TYPE_VVCURVETO |
| Constructor Summary | |
|---|---|
T2TDOEncoding(java.util.List<T2CharString> stack)
Create a new object. |
|
T2TDOEncoding(OtfTableCFF cff,
int numberOfGlyphs,
T2TDOCharset charset)
Creates a new object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEncodingName()
Getter for encodingName. |
java.lang.String |
getGlyphName(int pos)
Returns the name of the glyph. |
int |
getID()
Returns the id of the operator. |
java.lang.String |
getName()
Return the name of the operator. |
void |
init(RandomAccessR rar,
OtfTableCFF cff,
int baseoffset,
CffFont cffFont)
Initialize. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class org.extex.font.format.xtf.tables.cff.T2TDONumber |
|---|
getBytes, getDouble, getInteger, getValue, isDouble, isInteger, toString |
| Methods inherited from class org.extex.font.format.xtf.tables.cff.T2TopDICTOperator |
|---|
isTopDICTOperator, newInstance |
| Methods inherited from class org.extex.font.format.xtf.tables.cff.T2Operator |
|---|
checkWidth, convertStackaddID, isOperator, newInstance, toText |
| Methods inherited from class org.extex.font.format.xtf.tables.cff.T2CharString |
|---|
getInitPrio, isArray, isBoolean, isEscape, readNumber, readNumber, readSID, readTopDICTOperator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int EXPERT_ENCODING
public static final int FONT_DEFINED
public static final int STANDARD_ENCODING
| Constructor Detail |
|---|
public T2TDOEncoding(java.util.List<T2CharString> stack)
throws java.io.IOException
stack - the stack
java.io.IOException - if an IO-error occurs.
public T2TDOEncoding(OtfTableCFF cff,
int numberOfGlyphs,
T2TDOCharset charset)
It use the default cff encoding.
cff - The cff table.numberOfGlyphs - The number of glyphs.charset - The charset.| Method Detail |
|---|
public java.lang.String getEncodingName()
public java.lang.String getGlyphName(int pos)
pos - The position in the encoding.
public int getID()
getID in class T2OperatorT2Operator.getID()public java.lang.String getName()
getName in class T2OperatorT2Operator.getName()
public void init(RandomAccessR rar,
OtfTableCFF cff,
int baseoffset,
CffFont cffFont)
throws java.io.IOException
init in class T2Operatorrar - The inputcff - The cff tablebaseoffset - The base offset from cff.cffFont - The cff font.
java.io.IOException - if an IO-error occurred.T2Operator.init(org.extex.util.file.random.RandomAccessR,
org.extex.font.format.xtf.tables.OtfTableCFF, int,
org.extex.font.format.xtf.tables.cff.CffFont)
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writeXML in interface XMLWriterConvertiblewriteXML in class T2TDONumberwriter - the XML-Writer
java.io.IOException - if an IO-error occurs.T2TDONumber.writeXML(
org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||