jPod PDF library

de.intarsys.pdf.font
Class PDFontType3

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.PDFontType3
All Implemented Interfaces:
ICOSObjectListener, IResourcesProvider, de.intarsys.tools.attribute.IAttributeSupport

public class PDFontType3
extends PDSingleByteFont
implements IResourcesProvider


Nested Class Summary
static class PDFontType3.MetaClass
          The meta class implementation
 
Field Summary
static COSName DK_CharProcs
           
static COSName DK_FontBBox
           
static COSName DK_FontMatrix
           
static COSName DK_Resources
           
static COSName DK_ToUnicode
           
static PDFontType3.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_Widths
 
Fields inherited from class de.intarsys.pdf.pd.PDObject
DK_Subtype, DK_Type
 
Constructor Summary
PDFontType3(COSObject object)
           
 
Method Summary
 COSDictionary cosGetCharProcs()
           
 COSDictionary cosSetCharProcs(COSDictionary newDict)
           
 CDSRectangle getFontBB()
           
 String getFontFamilyName()
           
 CDSMatrix getFontMatrix()
           
 String getFontName()
           
 PDFontStyle getFontStyle()
           
 String getFontType()
           
 int getGlyphWidthEncoded(int codePoint)
          The glyph width of a codepoint in the font. codepoint refers to the encoded (possibly multibyte) value in the COSString.
 PDResources getResources()
          The PDResources.
 boolean isEmbedded()
          Answer true if this font's program is embedded within the document.
 boolean isSubset()
          Answer true if this font is partially embedded in the document.
 void setFontBB(CDSRectangle fontBB)
           
 void setFontMatrix(CDSMatrix fontMatrix)
           
 void setResources(PDResources resources)
           
 String toString()
           
 
Methods inherited from class de.intarsys.pdf.font.PDSingleByteFont
getGlyphsEncoded, getGlyphWidths, getNextGlyphsEncoded, invalidateCaches
 
Methods inherited from class de.intarsys.pdf.font.PDFont
dumpFontFile, getBaseFont, getEncoding, getFirstChar, getFontDescriptor, getFontFamilyName, getFontName, getFontNameNormalized, getFontStyle, getLastChar, getLookupFontFamilyName, getLookupFontName, getLookupFontStyle, getMacintoshRomanCode, getMissingWidth, getToUnicode, isStandardFont, setBaseFont, setEncoding, setFontDescriptor, setLookupFontFamilyName, setLookupFontName, setLookupFontStyle, setToUnicode
 
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

DK_FontBBox

public static final COSName DK_FontBBox

DK_FontMatrix

public static final COSName DK_FontMatrix

DK_CharProcs

public static final COSName DK_CharProcs

DK_Resources

public static final COSName DK_Resources

DK_ToUnicode

public static final COSName DK_ToUnicode

META

public static final PDFontType3.MetaClass META
The meta class instance

Constructor Detail

PDFontType3

public PDFontType3(COSObject object)
Parameters:
object -
Method Detail

cosGetCharProcs

public COSDictionary cosGetCharProcs()

cosSetCharProcs

public COSDictionary cosSetCharProcs(COSDictionary newDict)

getFontBB

public CDSRectangle getFontBB()

getFontFamilyName

public String getFontFamilyName()
Overrides:
getFontFamilyName in class PDFont

getFontMatrix

public CDSMatrix getFontMatrix()

getFontName

public String getFontName()
Overrides:
getFontName in class PDFont

getFontStyle

public PDFontStyle getFontStyle()
Overrides:
getFontStyle in class PDFont

getFontType

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

getGlyphWidthEncoded

public int getGlyphWidthEncoded(int codePoint)
Description copied from class: PDSingleByteFont
The glyph width of a codepoint in the font. codepoint refers to the encoded (possibly multibyte) value in the COSString.

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.

Overrides:
getGlyphWidthEncoded in class PDSingleByteFont
Parameters:
codePoint - The codepoint
Returns:
The glyph width of a codepoint in the font

getResources

public PDResources getResources()
The PDResources.

Specified by:
getResources in interface IResourcesProvider
Returns:
The PDResources.

isEmbedded

public boolean isEmbedded()
Description copied from class: PDFont
Answer true if this font's program is embedded within the document.

Overrides:
isEmbedded in class PDFont
Returns:
Answer true if this font's program is embedded within the document.

isSubset

public boolean isSubset()
Description copied from class: PDFont
Answer true if this font is partially embedded in the document.

Overrides:
isSubset in class PDFont
Returns:
Answer true if this font is partially embedded in the document.

setFontBB

public void setFontBB(CDSRectangle fontBB)

setFontMatrix

public void setFontMatrix(CDSMatrix fontMatrix)

setResources

public void setResources(PDResources resources)
Specified by:
setResources in interface IResourcesProvider

toString

public String toString()
Overrides:
toString in class PDFont

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.