intarsys PDF library API

de.intarsys.pdf.font
Class PDFontDescriptor

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.pd.PDObject
          extended by de.intarsys.pdf.font.PDFontDescriptor
All Implemented Interfaces:
ICOSObjectListener, IAttributeSupport
Direct Known Subclasses:
PDFontDescriptorEmbedded, PDFontDescriptorType1

public abstract class PDFontDescriptor
extends PDObject

the detail information about a font.


Nested Class Summary
static class PDFontDescriptor.MetaClass
          The meta class implementation
 
Field Summary
static COSName CN_Type_FontDescriptor
           
static PDFontDescriptor.MetaClass META
          The meta class instance
 
Fields inherited from class de.intarsys.pdf.pd.PDObject
DK_Subtype, DK_Type
 
Method Summary
abstract  float getAscent()
          The font ascent.
abstract  float getAvgWidth()
          The font average width.
abstract  float getCapHeight()
          The font capital height.
abstract  float getDescent()
          The font descent.
 FontDescriptorFlags getFlags()
           
abstract  int getFlagsValue()
          The font flags.
abstract  CDSRectangle getFontBB()
          The character enclosing rectangle.
abstract  String getFontFamily()
          The font family name.
 byte[] getFontFile()
           
 byte[] getFontFile2()
           
 byte[] getFontFile3()
           
abstract  String getFontName()
          The font name.
abstract  float getItalicAngle()
          The font italic angle.
abstract  int getLeading()
          The font leading.
abstract  int getMaxWidth()
          The font character maximal width.
abstract  int getMissingWidth()
          The width to use when definition is missing.
abstract  int getStemH()
          The font horizontal stem.
abstract  int getStemV()
          The font vertical stem.
abstract  float getXHeight()
          The height of "X".
 boolean isAllCap()
           
 boolean isFixedPitch()
           
 boolean isForceBold()
           
 boolean isItalic()
           
 boolean isNonsymbolic()
           
 boolean isScript()
           
 boolean isSerif()
           
 boolean isSmallCap()
           
 boolean isSymbolic()
           
 void setAllCap(boolean flag)
           
 void setFixedPitch(boolean flag)
           
abstract  void setFlagsValue(int value)
           
 void setForceBold(boolean flag)
           
 void setItalic(boolean flag)
           
 void setNonsymbolic(boolean flag)
           
 void setScript(boolean flag)
           
 void setSerif(boolean flag)
           
 void setSmallCap(boolean flag)
           
 void setSymbolic(boolean flag)
           
 
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 PDFontDescriptor.MetaClass META
The meta class instance


CN_Type_FontDescriptor

public static final COSName CN_Type_FontDescriptor
Method Detail

isAllCap

public boolean isAllCap()

isFixedPitch

public boolean isFixedPitch()

isForceBold

public boolean isForceBold()

isItalic

public boolean isItalic()

isNonsymbolic

public boolean isNonsymbolic()

isScript

public boolean isScript()

isSerif

public boolean isSerif()

isSmallCap

public boolean isSmallCap()

isSymbolic

public boolean isSymbolic()

setAllCap

public void setAllCap(boolean flag)

setFixedPitch

public void setFixedPitch(boolean flag)

setForceBold

public void setForceBold(boolean flag)

setItalic

public void setItalic(boolean flag)

setNonsymbolic

public void setNonsymbolic(boolean flag)

setScript

public void setScript(boolean flag)

setSerif

public void setSerif(boolean flag)

setSmallCap

public void setSmallCap(boolean flag)

setSymbolic

public void setSymbolic(boolean flag)

getAscent

public abstract float getAscent()
The font ascent.

Returns:
The font ascent.

getAvgWidth

public abstract float getAvgWidth()
The font average width.

Returns:
The font average width.

getCapHeight

public abstract float getCapHeight()
The font capital height.

Returns:
The capital height.

getDescent

public abstract float getDescent()
The font descent.

Returns:
The font descent.

getFlagsValue

public abstract int getFlagsValue()
The font flags.

Returns:
The font flags.

setFlagsValue

public abstract void setFlagsValue(int value)

getFontBB

public abstract CDSRectangle getFontBB()
The character enclosing rectangle.

Returns:
The character enclosing rectangle.

getFontFamily

public abstract String getFontFamily()
The font family name.

Returns:
The font name.

getFontName

public abstract String getFontName()
The font name.

Returns:
The font name.

getItalicAngle

public abstract float getItalicAngle()
The font italic angle.

Returns:
The font italic angle.

getLeading

public abstract int getLeading()
The font leading.

Returns:
The font leading.

getMaxWidth

public abstract int getMaxWidth()
The font character maximal width.

Returns:
The font character maximal width.

getMissingWidth

public abstract int getMissingWidth()
The width to use when definition is missing.

Returns:
The width to use when definition is missing.

getStemH

public abstract int getStemH()
The font horizontal stem.

Returns:
The font horizontal stem.

getStemV

public abstract int getStemV()
The font vertical stem.

Returns:
The font vertical stem.

getXHeight

public abstract float getXHeight()
The height of "X".

Returns:
The height of "X".

getFontFile

public byte[] getFontFile()

getFontFile2

public byte[] getFontFile2()

getFontFile3

public byte[] getFontFile3()

getFlags

public FontDescriptorFlags getFlags()

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.