| |
|
| java.lang.Object de.intarsys.pdf.cos.COSBasedObject de.intarsys.pdf.pd.PDObject de.intarsys.pdf.font.PDFont
All known Subclasses: de.intarsys.pdf.font.PDFontType1, de.intarsys.pdf.font.PDFontType0, de.intarsys.pdf.font.PDFontType3, de.intarsys.pdf.font.PDFontAny, de.intarsys.pdf.font.PDFontTrueType, de.intarsys.pdf.font.CIDFont,
CN_Subtype_CIDFontType0 | final public static COSName CN_Subtype_CIDFontType0(Code) | | |
CN_Subtype_CIDFontType2 | final public static COSName CN_Subtype_CIDFontType2(Code) | | |
CN_Subtype_MMType1 | final public static COSName CN_Subtype_MMType1(Code) | | |
CN_Subtype_TrueType | final public static COSName CN_Subtype_TrueType(Code) | | |
CN_Subtype_Type0 | final public static COSName CN_Subtype_Type0(Code) | | |
CN_Subtype_Type1 | final public static COSName CN_Subtype_Type1(Code) | | |
CN_Subtype_Type3 | final public static COSName CN_Subtype_Type3(Code) | | |
DK_FontDescriptor | final public static COSName DK_FontDescriptor(Code) | | |
META | final public static MetaClass META(Code) | | The meta class instance
|
PDFont | protected PDFont(COSObject object)(Code) | | Create the receiver class from an already defined
COSDictionary .
NEVER use the constructor directly.
Parameters: object - the PDDocument containing the new object |
compress | public void compress()(Code) | | |
createBuiltInWidths | protected int[] createBuiltInWidths(int[] result)(Code) | | Fill the correct width values into an array of glyph widths for a builtin
font. This is a valid implementation for type1 builtin fonts only.
Parameters: result - The array to hold the glyph widths. The array of widths for the defined range of chars in the font |
createDeclaredWidths | protected int[] createDeclaredWidths(int[] result, COSArray array)(Code) | | Fill an array of glyph widths from the definition prepared by the font
dictionary. The widths in the font are declared in the range from the
first supported code point to the last code point. The code point selects
a glyph out of the font depending on the encoding by the font, the
corresponding entry in the widt array defines its width.
Parameters: result - The array to hold the correct widths. Parameters: array - The COSArray defining the widths. The array of widths for the defined range of chars in the font |
createDefaultEncoding | protected Encoding createDefaultEncoding()(Code) | | get an encoding object that describes this fonts NATIVE encoding (if any)
an encoding |
createEncoding | protected Encoding createEncoding()(Code) | | Create the encoding for the font. The encoding is specified either "by
default", as a known encoding name or a completely user defined
difference encoding.
The encoding object for the font. throws: IllegalArgumentException - When the encoding defined in the font is not supported. |
createFirstChar | protected int createFirstChar()(Code) | | |
createFontDescriptor | protected PDFontDescriptor createFontDescriptor()(Code) | | the lazily created font descriptor of this font |
createLastChar | protected int createLastChar()(Code) | | |
createWidths | protected int[] createWidths()(Code) | | construct a array of glyph widths for the current font the widths may be
defined in the /Widths entry of the pdf font or in the font metric (afm)
of a builtin font
the array of widths for the defined range of chars in the font |
dump | protected void dump()(Code) | | |
getBaseFont | public COSName getBaseFont()(Code) | | the base font for this font dictionary |
getEncoding | public Encoding getEncoding()(Code) | | The encoding of the glyphs in the font
The encoding of the glyphs in the font |
getFirstChar | public int getFirstChar()(Code) | | The first codepoint defined in the font.
The first codepoint defined in the font |
getFontName | public static String getFontName(String name)(Code) | | extracts the "name" portion from the given font name string
Parameters: name - a font name font name's "name" portion |
getFontStyle | public static FontStyle getFontStyle(String name)(Code) | | extracts the "style" portion from the given font name
Parameters: name - a font name font name's "style" portion |
getGlyphWidth | public int getGlyphWidth(int codePoint)(Code) | | return the glyph width of a codepoint in the receiver font
Parameters: codePoint - the index of the glyph in the font the width of the glyph |
getGlyphWidths | public int[] getGlyphWidths()(Code) | | the array of defined widths for the font |
getLastChar | public int getLastChar()(Code) | | the last codepoint defined in the font |
getMacintoshRomanCode | public int getMacintoshRomanCode(int codePoint)(Code) | | This is a special mapping that is used if we have a font on the physical
device using a Macintosh Roman encoding character map.
See PDF docs, "Encodings for True Type fonts".
Parameters: codePoint - The unicode value for codePoint |
getMissingWidth | public int getMissingWidth()(Code) | | the width we should use for a missing/undefined glyph width |
getNextCID | abstract public CID getNextCID(byte[] bytes, int offset)(Code) | | |
getUnderlinePosition | abstract public float getUnderlinePosition()(Code) | | |
getUnderlineThickness | abstract public int getUnderlineThickness()(Code) | | |
getUnicode | public int getUnicode(int byteCode)(Code) | | |
isCharUsed | public boolean isCharUsed(int c)(Code) | | |
isEmbedded | public boolean isEmbedded()(Code) | | Answer true if this font's program is embedded within the document.
Answer true if this font's program is embedded within thedocument. |
isStandardFont | public boolean isStandardFont()(Code) | | Answer true if this is one of the 14 standard fonts. TODO 2 implement
Answer true if this is one of the 14 standard fonts. |
isSubset | public boolean isSubset()(Code) | | Answer true if this font is partially embedded in the document.
Answer true if this font is partially embedded in the document. |
setCharUsed | public void setCharUsed(int c)(Code) | | |
setEncoding | public void setEncoding(Encoding newFontEncoding)(Code) | | set an encoding for the font
Parameters: newFontEncoding - the new encoding to use |
Methods inherited from de.intarsys.pdf.cos.COSBasedObject | public void changed(COSObject pObject, Object slot, Object oldValue, Object newValue)(Code)(Java Doc) public COSArray cosGetArray()(Code)(Java Doc) public COSDictionary cosGetDict()(Code)(Java Doc) public COSDocument cosGetDoc()(Code)(Java Doc) public COSObject cosGetField(COSName name)(Code)(Java Doc) public COSObject cosGetObject()(Code)(Java Doc) public COSStream cosGetStream()(Code)(Java Doc) public boolean cosHasField(COSName name)(Code)(Java Doc) public COSObject cosRemoveField(COSName name)(Code)(Java Doc) public COSObject cosSetField(COSName name, COSObject cosObj)(Code)(Java Doc) public Object getAttribute(Object key)(Code)(Java Doc) public boolean getFieldBoolean(COSName name, boolean defaultValue)(Code)(Java Doc) public CDSDate getFieldDate(COSName name, CDSDate defaultValue)(Code)(Java Doc) public float getFieldFixed(COSName name, float defaultValue)(Code)(Java Doc) public float[] getFieldFixedArray(COSName name, float[] defaultValue)(Code)(Java Doc) public int getFieldInt(COSName name, int defaultValue)(Code)(Java Doc) public String getFieldMLString(COSName name, String defaultValue)(Code)(Java Doc) public String getFieldString(COSName name, String defaultValue)(Code)(Java Doc) protected void initializeFromCos()(Code)(Java Doc) protected void initializeFromScratch()(Code)(Java Doc) public void invalidateCaches()(Code)(Java Doc) public Object removeAttribute(Object key)(Code)(Java Doc) public Object setAttribute(Object key, Object value)(Code)(Java Doc) public void setFieldBoolean(COSName name, boolean value)(Code)(Java Doc) public void setFieldFixed(COSName name, float value)(Code)(Java Doc) protected void setFieldFixedArray(COSName key, float[] array)(Code)(Java Doc) public void setFieldInt(COSName name, int value)(Code)(Java Doc) public void setFieldMLString(COSName name, String value)(Code)(Java Doc) public void setFieldName(COSName name, String value)(Code)(Java Doc) public void setFieldObject(COSName name, COSBasedObject value)(Code)(Java Doc) public void setFieldString(COSName name, String value)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|
|