|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.pd.PDObject
de.intarsys.pdf.font.PDFont
de.intarsys.pdf.font.PDSingleByteFont
public abstract class PDSingleByteFont
A common superclass for the single byte encoded font flavors.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.intarsys.pdf.font.PDFont |
---|
PDFont.MetaClass |
Field Summary |
---|
Fields inherited from class de.intarsys.pdf.font.PDFont |
---|
CN_Subtype_CIDFontType0, CN_Subtype_CIDFontType2, CN_Subtype_MMType1, CN_Subtype_TrueType, CN_Subtype_Type0, CN_Subtype_Type1, CN_Subtype_Type3, CN_Type_Font, DK_BaseFont, DK_Encoding, DK_FirstChar, DK_FontDescriptor, DK_LastChar, DK_Name, DK_ToUnicode, DK_Widths, META |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Constructor Summary | |
---|---|
PDSingleByteFont(COSObject object)
|
Method Summary | |
---|---|
PDGlyphs |
getGlyphsEncoded(int codepoint)
The PDGlyphs instance for the encoded codepoint. |
int |
getGlyphWidthEncoded(int codepoint)
The glyph width of a codepoint in the font. codepoint refers to the encoded (possibly multibyte) value in the COSString. |
int[] |
getGlyphWidths()
The array of glyph widths. |
PDGlyphs |
getNextGlyphsEncoded(ByteArrayInputStream is)
The PDGlyphs denoted by the next byte or bytes in the input
stream. |
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed. |
Methods inherited from class de.intarsys.pdf.pd.PDObject |
---|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent |
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PDSingleByteFont(COSObject object)
Method Detail |
---|
public PDGlyphs getGlyphsEncoded(int codepoint)
PDFont
PDGlyphs
instance for the encoded codepoint.
getGlyphsEncoded
in class PDFont
PDGlyphs
instance for the encoded codepoint.public int getGlyphWidthEncoded(int codepoint)
In the standard case for single byte encoded fonts, the codepoint is the index in the /Widths array, holding the glyph width.
For multibyte fonts, see PDFontType0
.
getGlyphWidthEncoded
in class PDFont
codepoint
- The codepoint
public int[] getGlyphWidths()
public PDGlyphs getNextGlyphsEncoded(ByteArrayInputStream is)
PDFont
PDGlyphs
denoted by the next byte or bytes in the input
stream.
For single byte encoded fonts a single byte is read and the associated
PDGlyphs
is returned. For CID fonts, the appropriate number of
bytes is read form the input stream to select the PDGlyphs
.
getNextGlyphsEncoded
in class PDFont
is
- The input stream on the COSString
bytes
PDGlyphs
referenced by the input stream.public void invalidateCaches()
COSBasedObject
invalidateCaches
in class PDFont
|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |