public class PDFontType0 extends PDFont
| Modifier and Type | Class and Description |
|---|---|
static class |
PDFontType0.MetaClass
The meta class implementation
|
| Modifier and Type | Field and Description |
|---|---|
static COSName |
DK_DescendantFonts |
static PDFontType0.MetaClass |
META
The meta class instance
|
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_WidthsDK_Subtype, DK_Type| Constructor and Description |
|---|
PDFontType0(COSObject object) |
| Modifier and Type | Method and Description |
|---|---|
CMap |
getCMap()
The
CMap associated with the Type0 font. |
CIDFont |
getDescendantFont()
The descendant font (font program) for the Type0 font.
|
PDFontDescriptor |
getFontDescriptor()
The
PDFontDescriptor object for this font. |
String |
getFontFamilyName() |
String |
getFontName() |
String |
getFontNameNormalized() |
PDFontStyle |
getFontStyle() |
String |
getFontType() |
int |
getGlyphIndex(int cid) |
PDGlyphs |
getGlyphsEncoded(int codepoint)
The
PDGlyphs instance for the encoded codepoint. |
int |
getGlyphWidthEncoded(int codePoint)
The glyph width of an encoded codepoint in the font.
|
PDGlyphs |
getNextGlyphsEncoded(ByteArrayInputStream is)
The
PDGlyphs denoted by the next byte or bytes in the input
stream. |
void |
setDescendantFont(CIDFont font) |
dumpFontFile, getBaseFont, getEncoding, getFirstChar, getFontFamilyName, getFontName, getFontStyle, getLastChar, getLookupFontFamilyName, getLookupFontName, getLookupFontStyle, getMacintoshRomanCode, getMissingWidth, getToUnicode, invalidateCaches, 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 static final COSName DK_DescendantFonts
public static final PDFontType0.MetaClass META
public PDFontType0(COSObject object)
public CMap getCMap()
CMap associated with the Type0 font. The CMap defines a
mapping from code points to character selectors.CMap associated with the Type0 font.public CIDFont getDescendantFont()
public PDFontDescriptor getFontDescriptor()
PDFontPDFontDescriptor object for this font.getFontDescriptor in class PDFontPDFontDescriptor object for this fontpublic String getFontFamilyName()
getFontFamilyName in class PDFontpublic String getFontName()
getFontName in class PDFontpublic String getFontNameNormalized()
getFontNameNormalized in class PDFontpublic PDFontStyle getFontStyle()
getFontStyle in class PDFontpublic String getFontType()
getFontType in class PDFontpublic int getGlyphIndex(int cid)
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)
PDFontIn 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 PDGlyphs getNextGlyphsEncoded(ByteArrayInputStream is) throws IOException
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.IOExceptionpublic void setDescendantFont(CIDFont font)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.