jPod PDF library

de.intarsys.pdf.font
Class PDFontType1

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.pd.PDObject
          extended by de.intarsys.pdf.font.PDFont
              extended by de.intarsys.pdf.font.PDSingleByteFont
                  extended by de.intarsys.pdf.font.PDFontType1
All Implemented Interfaces:
ICOSObjectListener, de.intarsys.tools.attribute.IAttributeSupport
Direct Known Subclasses:
PDFontMMType1

public class PDFontType1
extends PDSingleByteFont

basic implementation for type 1 support


Nested Class Summary
static class PDFontType1.MetaClass
          The meta class implementation
 
Field Summary
static Map<String,String> FONT_ALIASES
          Map of known alternative names for the builtin fonts
static Map<String,String> FONT_ALIASES_DEPRECATED
          Map of known deprecated alternative names for the builtin fonts
static String[] FONT_BUILTINS
           
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 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(String name)
          create a Type1 font object to be used in the pdf document
 String getFontNameNormalized()
           
 String getFontType()
           
static boolean isBuiltin(String name)
           
static boolean isBuiltinAlias(String name)
           
static boolean isBuiltinDeprecated(String name)
           
 boolean isStandardFont()
          Answer true if this is one of the 14 standard fonts.
static de.intarsys.cwt.font.afm.AFM lookupBuiltinAFM(String name)
          Lookup the AFM structure for the named builtin font.
 
Methods inherited from class de.intarsys.pdf.font.PDSingleByteFont
getGlyphsEncoded, getGlyphWidthEncoded, getGlyphWidths, getNextGlyphsEncoded, invalidateCaches
 
Methods inherited from class de.intarsys.pdf.font.PDFont
dumpFontFile, getBaseFont, getEncoding, getFirstChar, getFontDescriptor, getFontFamilyName, getFontFamilyName, getFontName, getFontName, getFontStyle, getFontStyle, getLastChar, getLookupFontFamilyName, getLookupFontName, getLookupFontStyle, getMacintoshRomanCode, getMissingWidth, getToUnicode, isEmbedded, isSubset, setBaseFont, setEncoding, setFontDescriptor, setLookupFontFamilyName, setLookupFontName, setLookupFontStyle, setToUnicode, 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, 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

FONT_ALIASES

public static final Map<String,String> FONT_ALIASES
Map of known alternative names for the builtin fonts


FONT_ALIASES_DEPRECATED

public static final Map<String,String> FONT_ALIASES_DEPRECATED
Map of known deprecated alternative names for the builtin fonts


FONT_Courier

public static String FONT_Courier

FONT_Courier_Bold

public static String FONT_Courier_Bold

FONT_Courier_BoldOblique

public static String FONT_Courier_BoldOblique

FONT_Courier_Oblique

public static String FONT_Courier_Oblique

FONT_Helvetica

public static String FONT_Helvetica

FONT_Helvetica_Bold

public static String FONT_Helvetica_Bold

FONT_Helvetica_BoldOblique

public static String FONT_Helvetica_BoldOblique

FONT_Helvetica_Oblique

public static String FONT_Helvetica_Oblique

FONT_Symbol

public static String FONT_Symbol

FONT_Times_Bold

public static String FONT_Times_Bold

FONT_Times_BoldItalic

public static String FONT_Times_BoldItalic

FONT_Times_Italic

public static String FONT_Times_Italic

FONT_Times_Roman

public static String FONT_Times_Roman

FONT_ZapfDingbats

public static String FONT_ZapfDingbats

FONT_BUILTINS

public static final String[] FONT_BUILTINS

META

public static final PDFontType1.MetaClass META
The meta class instance

Method Detail

createNew

public static PDFontType1 createNew(String name)
create a Type1 font object to be used in the pdf document

Parameters:
name - the name of the font to use
Returns:
the new font created

isBuiltin

public static boolean isBuiltin(String name)

isBuiltinAlias

public static boolean isBuiltinAlias(String name)

isBuiltinDeprecated

public static boolean isBuiltinDeprecated(String name)

lookupBuiltinAFM

public static de.intarsys.cwt.font.afm.AFM lookupBuiltinAFM(String name)
Lookup the AFM structure for the named builtin font.

Parameters:
name -
Returns:
the AFM structure for the named builtin font.

getFontNameNormalized

public String getFontNameNormalized()
Overrides:
getFontNameNormalized in class PDFont

getFontType

public String getFontType()
Specified by:
getFontType in class PDFont

isStandardFont

public boolean isStandardFont()
Description copied from class: PDFont
Answer true if this is one of the 14 standard fonts. TODO 2 implement

Overrides:
isStandardFont in class PDFont
Returns:
Answer true if this is one of the 14 standard fonts.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.