intarsys PDF library API

de.intarsys.pdf.font
Class PDFontType0

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.PDFontType0
All Implemented Interfaces:
IFont, ICOSObjectListener, IAttributeSupport

public class PDFontType0
extends PDFont


Nested Class Summary
static class PDFontType0.MetaClass
          The meta class implementation
 
Field Summary
static COSName DK_DescendantFonts
           
static PDFontType0.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
 
Constructor Summary
PDFontType0(COSObject object)
           
 
Method Summary
 CMap getCMap()
           
 CIDFont getDescendantFont()
           
 PDFontDescriptor getFontDescriptor()
           
 String getFontFamilyName()
          The font family name.
 String getFontName()
          The complete font name.
 FontStyle getFontStyle()
          The font style.
 int getGlyphIndex(CID cid)
           
 int getGlyphWidth(int codePoint)
          return the glyph width of a codepoint in the receiver font
 CID getNextCID(byte[] bytes, int offset)
           
 float getUnderlinePosition()
           
 int getUnderlineThickness()
           
 
Methods inherited from class de.intarsys.pdf.font.PDFont
compress, getBaseFont, getEncoding, getFirstChar, getFontFamilyName, getFontName, getFontStyle, getGlyphWidths, getLastChar, getMacintoshRomanCode, getMissingWidth, getToUnicode, getUnicode, isCharUsed, isEmbedded, isStandardFont, 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

DK_DescendantFonts

public static final COSName DK_DescendantFonts

META

public static final PDFontType0.MetaClass META
The meta class instance

Constructor Detail

PDFontType0

public PDFontType0(COSObject object)
Method Detail

getCMap

public CMap getCMap()

getDescendantFont

public CIDFont getDescendantFont()

getFontDescriptor

public PDFontDescriptor getFontDescriptor()
Overrides:
getFontDescriptor in class PDFont
Returns:
the font descriptor object for this font

getFontFamilyName

public String getFontFamilyName()
Description copied from interface: IFont
The font family name.

Returns:
The font family name.

getFontName

public String getFontName()
Description copied from interface: IFont
The complete font name.

Returns:
The complete font name.

getFontStyle

public FontStyle getFontStyle()
Description copied from interface: IFont
The font style.

Returns:
The font style.

getGlyphWidth

public int getGlyphWidth(int codePoint)
Description copied from class: PDFont
return the glyph width of a codepoint in the receiver font

Overrides:
getGlyphWidth in class PDFont
Parameters:
codePoint - the index of the glyph in the font
Returns:
the width of the glyph

getNextCID

public CID getNextCID(byte[] bytes,
                      int offset)
Specified by:
getNextCID in class PDFont

getUnderlinePosition

public float getUnderlinePosition()
Specified by:
getUnderlinePosition in class PDFont

getUnderlineThickness

public int getUnderlineThickness()
Specified by:
getUnderlineThickness in class PDFont

getGlyphIndex

public int getGlyphIndex(CID cid)

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.