public abstract class PDSingleByteFont extends PDFont
PDFont.MetaClassCN_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, METADK_Subtype, DK_Type| Constructor and Description |
|---|
PDSingleByteFont(COSObject object) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
dumpFontFile, getBaseFont, getEncoding, getFirstChar, getFontDescriptor, getFontFamilyName, getFontFamilyName, getFontName, getFontName, getFontNameNormalized, getFontStyle, getFontStyle, getFontType, getLastChar, getLookupFontFamilyName, getLookupFontName, getLookupFontStyle, getMacintoshRomanCode, getMissingWidth, getToUnicode, isEmbedded, isStandardFont, isSubset, setBaseFont, setEncoding, setFontDescriptor, setLookupFontFamilyName, setLookupFontName, setLookupFontStyle, setToUnicode, toStringcosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParentchanged, 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, setFieldStringpublic PDSingleByteFont(COSObject object)
public PDGlyphs getGlyphsEncoded(int codepoint)
PDFontPDGlyphs instance for the encoded codepoint.getGlyphsEncoded in class PDFontPDGlyphs 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 PDFontcodepoint - The codepointpublic int[] getGlyphWidths()
public PDGlyphs getNextGlyphsEncoded(ByteArrayInputStream is)
PDFontPDGlyphs 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 PDFontis - The input stream on the COSString bytesPDGlyphs referenced by the input stream.public void invalidateCaches()
COSBasedObjectinvalidateCaches in class PDFontCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.