jPod PDF library

de.intarsys.pdf.font
Class PDFontDescriptorAFM

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.pd.PDObject
          extended by de.intarsys.pdf.font.PDFontDescriptor
              extended by de.intarsys.pdf.font.PDFontDescriptorAFM
All Implemented Interfaces:
ICOSObjectListener, de.intarsys.tools.attribute.IAttributeSupport

public class PDFontDescriptorAFM
extends PDFontDescriptor

The PDFontDescriptor that is used when no explicit /FontDescriptor is available in the PDF document. This will happen only when a built in font is used.


Nested Class Summary
static class PDFontDescriptorAFM.MetaClass
          The meta class implementation
 
Field Summary
static PDFontDescriptorAFM.MetaClass META
          The meta class instance
 
Fields inherited from class de.intarsys.pdf.font.PDFontDescriptor
CN_Type_FontDescriptor
 
Fields inherited from class de.intarsys.pdf.pd.PDObject
DK_Subtype, DK_Type
 
Method Summary
 de.intarsys.cwt.font.afm.AFM getAfm()
           
 float getAscent()
          The font ascent.
 float getAvgWidth()
          The font average width.
 float getCapHeight()
          The font capital height.
 String getCharSet()
           
 float getDescent()
          The font descent.
 int getFlagsValue()
          The font flags.
 CDSRectangle getFontBB()
          The character enclosing rectangle.
 String getFontFamily()
          The font family name.
 String getFontName()
          The font name.
 String getFontStretch()
          The font stretch value, one of UltraCondensed ExtraCondensed Condensed SemiCondensed Normal SemiExpanded Expanded ExtraExpanded UltraExpanded
 int getFontWeight()
          The font weight value, one of 100 200 300 400 (normal) 500 600 700 (bold) 800 900
 float getItalicAngle()
          The font italic angle.
 int getLeading()
          The font leading.
 int getMaxWidth()
          The font character maximal width.
 int getMissingWidth()
          The width to use when definition is missing.
 int getStemH()
          The font horizontal stem.
 int getStemV()
          The font vertical stem.
 float getXHeight()
          The height of "X".
 boolean isBuiltin()
           
 boolean isNonsymbolic()
           
 boolean isSymbolic()
           
 void setCharSet(String charset)
           
 void setFlagsValue(int value)
           
 void setFontStretch(String stretch)
           
 void setFontWeight(int weight)
           
 
Methods inherited from class de.intarsys.pdf.font.PDFontDescriptor
cosGetFontFile, cosGetFontFile2, cosGetFontFile3, getFlags, getFontFile, getFontFile2, getFontFile3, isAllCap, isFixedPitch, isForceBold, isItalic, isScript, isSerif, isSmallCap, setAllCap, setFixedPitch, setFontFamily, setFontFile, setFontFile2, setFontFile3, setFontName, setForceBold, setItalic, setNonsymbolic, setScript, setSerif, setSmallCap, setSymbolic
 
Methods inherited from class de.intarsys.pdf.pd.PDObject
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toString
 
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

META

public static final PDFontDescriptorAFM.MetaClass META
The meta class instance

Method Detail

getAfm

public de.intarsys.cwt.font.afm.AFM getAfm()

getAscent

public float getAscent()
Description copied from class: PDFontDescriptor
The font ascent.

Specified by:
getAscent in class PDFontDescriptor
Returns:
The font ascent.

getAvgWidth

public float getAvgWidth()
Description copied from class: PDFontDescriptor
The font average width.

Specified by:
getAvgWidth in class PDFontDescriptor
Returns:
The font average width.

getCapHeight

public float getCapHeight()
Description copied from class: PDFontDescriptor
The font capital height.

Specified by:
getCapHeight in class PDFontDescriptor
Returns:
The capital height.

getCharSet

public String getCharSet()
Specified by:
getCharSet in class PDFontDescriptor

getDescent

public float getDescent()
Description copied from class: PDFontDescriptor
The font descent.

Specified by:
getDescent in class PDFontDescriptor
Returns:
The font descent.

getFlagsValue

public int getFlagsValue()
Description copied from class: PDFontDescriptor
The font flags.

Specified by:
getFlagsValue in class PDFontDescriptor
Returns:
The font flags.

getFontBB

public CDSRectangle getFontBB()
Description copied from class: PDFontDescriptor
The character enclosing rectangle.

Specified by:
getFontBB in class PDFontDescriptor
Returns:
The character enclosing rectangle.

getFontFamily

public String getFontFamily()
Description copied from class: PDFontDescriptor
The font family name.

Specified by:
getFontFamily in class PDFontDescriptor
Returns:
The font name.

getFontName

public String getFontName()
Description copied from class: PDFontDescriptor
The font name.

Specified by:
getFontName in class PDFontDescriptor
Returns:
The font name.

getFontStretch

public String getFontStretch()
Description copied from class: PDFontDescriptor
The font stretch value, one of

Specified by:
getFontStretch in class PDFontDescriptor
Returns:
The font stretch value

getFontWeight

public int getFontWeight()
Description copied from class: PDFontDescriptor
The font weight value, one of

Specified by:
getFontWeight in class PDFontDescriptor
Returns:
The font stretch value

getItalicAngle

public float getItalicAngle()
Description copied from class: PDFontDescriptor
The font italic angle.

Specified by:
getItalicAngle in class PDFontDescriptor
Returns:
The font italic angle.

getLeading

public int getLeading()
Description copied from class: PDFontDescriptor
The font leading.

Specified by:
getLeading in class PDFontDescriptor
Returns:
The font leading.

getMaxWidth

public int getMaxWidth()
Description copied from class: PDFontDescriptor
The font character maximal width.

Specified by:
getMaxWidth in class PDFontDescriptor
Returns:
The font character maximal width.

getMissingWidth

public int getMissingWidth()
Description copied from class: PDFontDescriptor
The width to use when definition is missing.

Specified by:
getMissingWidth in class PDFontDescriptor
Returns:
The width to use when definition is missing.

getStemH

public int getStemH()
Description copied from class: PDFontDescriptor
The font horizontal stem.

Specified by:
getStemH in class PDFontDescriptor
Returns:
The font horizontal stem.

getStemV

public int getStemV()
Description copied from class: PDFontDescriptor
The font vertical stem.

Specified by:
getStemV in class PDFontDescriptor
Returns:
The font vertical stem.

getXHeight

public float getXHeight()
Description copied from class: PDFontDescriptor
The height of "X".

Specified by:
getXHeight in class PDFontDescriptor
Returns:
The height of "X".

isBuiltin

public boolean isBuiltin()
Overrides:
isBuiltin in class PDFontDescriptor

isNonsymbolic

public boolean isNonsymbolic()
Overrides:
isNonsymbolic in class PDFontDescriptor

isSymbolic

public boolean isSymbolic()
Overrides:
isSymbolic in class PDFontDescriptor

setCharSet

public void setCharSet(String charset)
Specified by:
setCharSet in class PDFontDescriptor

setFlagsValue

public void setFlagsValue(int value)
Specified by:
setFlagsValue in class PDFontDescriptor

setFontStretch

public void setFontStretch(String stretch)
Specified by:
setFontStretch in class PDFontDescriptor

setFontWeight

public void setFontWeight(int weight)
Specified by:
setFontWeight in class PDFontDescriptor

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.