|
intarsys PDF library API | |||||||||
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.PDFontType1
public class PDFontType1
basic implementation for type 1 support
Nested Class Summary | |
---|---|
static class |
PDFontType1.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static String |
FONT_Courier
|
static String |
FONT_Courier_Bold
|
static String |
FONT_Courier_BoldOblique
|
static String |
FONT_Courier_Oblique
|
static String |
FONT_Helvetica
|
static String |
FONT_Helvetica_Bold
|
static String |
FONT_Helvetica_BoldOblique
|
static String |
FONT_Helvetica_Oblique
|
static String |
FONT_Symbol
|
static String |
FONT_Times_Bold
|
static String |
FONT_Times_BoldItalic
|
static String |
FONT_Times_Italic
|
static String |
FONT_Times_Roman
|
static String |
FONT_ZapfDingbats
|
static Map |
FontAlternatives
Map of known alternative names for the builtin fonts |
static String[] |
FONTS_STANDARD
|
static PDFontType1.MetaClass |
META
The meta class instance |
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 |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Method Summary | |
---|---|
static PDFontType1 |
createNew(de.intarsys.font.afm.AFM afm)
Create a Type1 font from an existing AFM definition. |
static PDFontType1 |
createNew(String name)
create a Type1 font object to be used in the pdf document |
void |
embedFontProgram(InputStream is)
|
de.intarsys.font.afm.AFM |
getAfm()
|
String |
getFontFamilyName()
The font family name. |
String |
getFontName()
The complete font name. |
FontStyle |
getFontStyle()
The font style. |
CID |
getNextCID(byte[] bytes,
int offset)
|
float |
getUnderlinePosition()
|
int |
getUnderlineThickness()
|
void |
initializeFromScratchFontDescriptor()
|
boolean |
isStandardFont()
Answer true if this is one of the 14 standard fonts. |
void |
setAfm(de.intarsys.font.afm.AFM afm)
|
Methods inherited from class de.intarsys.pdf.font.PDFont |
---|
compress, getBaseFont, getEncoding, getFirstChar, getFontDescriptor, getFontFamilyName, getFontName, getFontStyle, getGlyphWidth, getGlyphWidths, getLastChar, getMacintoshRomanCode, getMissingWidth, getToUnicode, getUnicode, isCharUsed, isEmbedded, isSubset, setBaseFont, setCharUsed, setEncoding, setFontDescriptor, toString |
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, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Map FontAlternatives
public static String FONT_Courier
public static String FONT_Courier_Bold
public static String FONT_Courier_BoldOblique
public static String FONT_Courier_Oblique
public static String FONT_Helvetica
public static String FONT_Helvetica_Bold
public static String FONT_Helvetica_BoldOblique
public static String FONT_Helvetica_Oblique
public static String FONT_Symbol
public static String FONT_Times_Bold
public static String FONT_Times_BoldItalic
public static String FONT_Times_Italic
public static String FONT_Times_Roman
public static String FONT_ZapfDingbats
public static final String[] FONTS_STANDARD
public static final PDFontType1.MetaClass META
Method Detail |
---|
public static PDFontType1 createNew(de.intarsys.font.afm.AFM afm)
afm
- the AFM font definition structure.
public static PDFontType1 createNew(String name)
name
- the name of the font to use
public void embedFontProgram(InputStream is)
public de.intarsys.font.afm.AFM getAfm()
public String getFontFamilyName()
IFont
getFontFamilyName
in interface IFont
public String getFontName()
IFont
getFontName
in interface IFont
public FontStyle getFontStyle()
IFont
getFontStyle
in interface IFont
public CID getNextCID(byte[] bytes, int offset)
getNextCID
in class PDFont
public float getUnderlinePosition()
getUnderlinePosition
in class PDFont
public int getUnderlineThickness()
getUnderlineThickness
in class PDFont
public void initializeFromScratchFontDescriptor()
public boolean isStandardFont()
PDFont
isStandardFont
in class PDFont
public void setAfm(de.intarsys.font.afm.AFM afm)
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |