intarsys PDF library API

de.intarsys.pdf.font
Class CIDFont

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.CIDFont
All Implemented Interfaces:
IFont, ICOSObjectListener, IAttributeSupport
Direct Known Subclasses:
CIDFontType0, CIDFontType2

public abstract class CIDFont
extends PDFont

A CID indexed font.

This is a wrapper around a Type 1 or TrueType Font that is indexed using CID's.

This is a a subclass of PDFont only for implementation reasons.

todo 1 cmap review, delegate methods, access implementation font.


Nested Class Summary
static class CIDFont.MetaClass
          The meta class implementation
 
Field Summary
static COSName DK_CIDSystemInfo
           
static COSName DK_DW
           
static COSName DK_DW2
           
static COSName DK_W
           
static COSName DK_W2
           
static CIDFont.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
 CIDSystemInfo getCIDSystemInfo()
           
 CIDWidthMap getCIDWidthMap()
           
 String getFontFamilyName()
          The font family name.
 String getFontName()
          The complete font name.
 FontStyle getFontStyle()
          The font style.
abstract  int getGlyphIndex(CID cid)
           
 int getGlyphWidth(int cidValue)
          return the glyph width of a codepoint in the receiver font
 float getUnderlinePosition()
           
 int getUnderlineThickness()
           
 
Methods inherited from class de.intarsys.pdf.font.PDFont
compress, getBaseFont, getEncoding, getFirstChar, getFontDescriptor, getFontFamilyName, getFontName, getFontStyle, getGlyphWidths, getLastChar, getMacintoshRomanCode, getMissingWidth, getNextCID, 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_CIDSystemInfo

public static final COSName DK_CIDSystemInfo

DK_DW

public static final COSName DK_DW

DK_W

public static final COSName DK_W

DK_DW2

public static final COSName DK_DW2

DK_W2

public static final COSName DK_W2

META

public static final CIDFont.MetaClass META
The meta class instance

Method Detail

getCIDWidthMap

public CIDWidthMap getCIDWidthMap()

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.

getUnderlinePosition

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

getUnderlineThickness

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

getCIDSystemInfo

public CIDSystemInfo getCIDSystemInfo()

getGlyphWidth

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

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

getGlyphIndex

public abstract int getGlyphIndex(CID cid)

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.