jPod PDF library

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, de.intarsys.tools.attribute.IAttributeSupport
Direct Known Subclasses:
PDFontDescriptorAFM, PDFontDescriptorEmbedded, PDFontDescriptorType3

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
 COSStream cosGetFontFile()
           
 COSStream cosGetFontFile2()
           
 COSStream cosGetFontFile3()
           
abstract  float getAscent()
          The font ascent.
abstract  float getAvgWidth()
          The font average width.
abstract  float getCapHeight()
          The font capital height.
abstract  String getCharSet()
           
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()
          The data making up a Type1 font program.
 byte[] getFontFile2()
          The data making up a TrueType font program
 byte[] getFontFile3()
          data for a font type specified in the /Subtpye entry of the stream dictionary.
abstract  String getFontName()
          The font name.
abstract  String getFontStretch()
          The font stretch value, one of UltraCondensed ExtraCondensed Condensed SemiCondensed Normal SemiExpanded Expanded ExtraExpanded UltraExpanded
abstract  int getFontWeight()
          The font weight value, one of 100 200 300 400 (normal) 500 600 700 (bold) 800 900
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 isBuiltin()
           
 boolean isFixedPitch()
           
 boolean isForceBold()
           
 boolean isItalic()
           
 boolean isNonsymbolic()
           
 boolean isScript()
           
 boolean isSerif()
           
 boolean isSmallCap()
           
 boolean isSymbolic()
           
 void setAllCap(boolean flag)
           
abstract  void setCharSet(String charset)
           
 void setFixedPitch(boolean flag)
           
abstract  void setFlagsValue(int value)
           
 void setFontFamily(String value)
           
 void setFontFile(byte[] data)
           
 void setFontFile2(byte[] data)
           
 void setFontFile3(byte[] data)
           
 void setFontName(String value)
           
abstract  void setFontStretch(String stretch)
           
abstract  void setFontWeight(int weight)
           
 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

CN_Type_FontDescriptor

public static final COSName CN_Type_FontDescriptor

META

public static final PDFontDescriptor.MetaClass META
The meta class instance

Method Detail

cosGetFontFile

public COSStream cosGetFontFile()

cosGetFontFile2

public COSStream cosGetFontFile2()

cosGetFontFile3

public COSStream cosGetFontFile3()

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.

getCharSet

public abstract String getCharSet()

getDescent

public abstract float getDescent()
The font descent.

Returns:
The font descent.

getFlags

public FontDescriptorFlags getFlags()

getFlagsValue

public abstract int getFlagsValue()
The font flags.

Returns:
The font flags.

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.

getFontFile

public byte[] getFontFile()
The data making up a Type1 font program.

Returns:
The data making up a Type1 font program.

getFontFile2

public byte[] getFontFile2()
The data making up a TrueType font program

Returns:
The data making up a TrueType font program

getFontFile3

public byte[] getFontFile3()
data for a font type specified in the /Subtpye entry of the stream dictionary.

Returns:
data for a font type specified in the /Subtpye entry of the stream dictionary.

getFontName

public abstract String getFontName()
The font name.

Returns:
The font name.

getFontStretch

public abstract String getFontStretch()
The font stretch value, one of

Returns:
The font stretch value

getFontWeight

public abstract int getFontWeight()
The font weight value, one of

Returns:
The font stretch value

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

isAllCap

public boolean isAllCap()

isBuiltin

public boolean isBuiltin()

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)

setCharSet

public abstract void setCharSet(String charset)

setFixedPitch

public void setFixedPitch(boolean flag)

setFlagsValue

public abstract void setFlagsValue(int value)

setFontFamily

public void setFontFamily(String value)

setFontFile

public void setFontFile(byte[] data)

setFontFile2

public void setFontFile2(byte[] data)

setFontFile3

public void setFontFile3(byte[] data)

setFontName

public void setFontName(String value)

setFontStretch

public abstract void setFontStretch(String stretch)

setFontWeight

public abstract void setFontWeight(int weight)

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)

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.