intarsys PDF library API

de.intarsys.pdf.font
Class PDFontDescriptorType1

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

public class PDFontDescriptorType1
extends PDFontDescriptor

the PDFontDescriptor that is used when no explicit font descriptor is available in the pdf file. this will happen only when a builtin font is used


Nested Class Summary
static class PDFontDescriptorType1.MetaClass
          The meta class implementation
 
Field Summary
static PDFontDescriptorType1.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
 float getAscent()
          The font ascent.
 float getAvgWidth()
          The font average width.
 float getCapHeight()
          The font capital height.
 float getDescent()
          The font descent.
 int getFlagsValue()
          The font flags.
 PDFontType1 getFont()
           
 CDSRectangle getFontBB()
          The character enclosing rectangle.
 String getFontFamily()
          The font family name.
 String getFontName()
          The font name.
 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 isNonsymbolic()
           
 boolean isSymbolic()
           
 void setFlagsValue(int value)
           
 
Methods inherited from class de.intarsys.pdf.font.PDFontDescriptor
getFlags, getFontFile, getFontFile2, getFontFile3, isAllCap, isFixedPitch, isForceBold, isItalic, isScript, isSerif, isSmallCap, setAllCap, setFixedPitch, 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 PDFontDescriptorType1.MetaClass META
The meta class instance

Method Detail

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.

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.

setFlagsValue

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

getFont

public PDFontType1 getFont()

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.

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".

isSymbolic

public boolean isSymbolic()
Overrides:
isSymbolic in class PDFontDescriptor

isNonsymbolic

public boolean isNonsymbolic()
Overrides:
isNonsymbolic in class PDFontDescriptor

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.