intarsys PDF library API

de.intarsys.pdf.font
Class PDFontDescriptorEmbedded

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

public class PDFontDescriptorEmbedded
extends PDFontDescriptor

The PDFontDescriptor that is used when an explicit font descriptor is available in the pdf file. This will happen most of the time, only the builtin fonts MAY discard this object.


Nested Class Summary
static class PDFontDescriptorEmbedded.MetaClass
          The meta class implementation
 
Field Summary
static COSName DK_Ascent
           
static COSName DK_AvgWidth
           
static COSName DK_CapHeight
           
static COSName DK_Descent
           
static COSName DK_Flags
           
static COSName DK_FontBBox
           
static COSName DK_FontFamily
           
static COSName DK_FontFile
           
static COSName DK_FontFile2
           
static COSName DK_FontFile3
           
static COSName DK_FontName
           
static COSName DK_ItalicAngle
           
static COSName DK_Leading
           
static COSName DK_Length1
           
static COSName DK_Length2
           
static COSName DK_Length3
           
static COSName DK_MaxWidth
           
static COSName DK_MissingWidth
           
static COSName DK_StemH
           
static COSName DK_StemV
           
static COSName DK_XHeight
           
static PDFontDescriptorEmbedded.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.
 CDSRectangle getFontBB()
          The character enclosing rectangle.
 String getFontFamily()
          The font family name.
 byte[] getFontFile()
           
 byte[] getFontFile2()
           
 byte[] getFontFile3()
           
 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".
 void removeFontFile2()
           
 void setAscent(int value)
           
 void setAvgWidth(int value)
           
 void setCapHeight(int value)
           
 void setDescent(int value)
           
 void setFlags(int value)
           
 void setFlagsValue(int value)
           
 void setFontBB(CDSRectangle rect)
           
 void setFontFamily(String value)
           
 void setFontFile(byte[] data)
          This is the type 1 fontfile stream It will try to parse the input, which must be a pfb file.
 void setFontFile2(byte[] data)
           
 void setFontFile3(byte[] data)
           
 void setFontName(String value)
           
 void setItalicAngle(float value)
           
 void setLeading(int value)
           
 void setMaxWidth(int value)
           
 void setMissingWidth(int value)
           
 void setStemH(int value)
           
 void setStemV(int value)
           
 void setXHeight(int value)
           
 
Methods inherited from class de.intarsys.pdf.font.PDFontDescriptor
getFlags, isAllCap, isFixedPitch, isForceBold, isItalic, isNonsymbolic, isScript, isSerif, isSmallCap, isSymbolic, 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 PDFontDescriptorEmbedded.MetaClass META
The meta class instance


DK_Descent

public static final COSName DK_Descent

DK_CapHeight

public static final COSName DK_CapHeight

DK_AvgWidth

public static final COSName DK_AvgWidth

DK_Ascent

public static final COSName DK_Ascent

DK_XHeight

public static final COSName DK_XHeight

DK_StemV

public static final COSName DK_StemV

DK_StemH

public static final COSName DK_StemH

DK_MissingWidth

public static final COSName DK_MissingWidth

DK_MaxWidth

public static final COSName DK_MaxWidth

DK_Leading

public static final COSName DK_Leading

DK_ItalicAngle

public static final COSName DK_ItalicAngle

DK_FontName

public static final COSName DK_FontName

DK_FontBBox

public static final COSName DK_FontBBox

DK_Flags

public static final COSName DK_Flags

DK_FontFile

public static final COSName DK_FontFile

DK_FontFile2

public static final COSName DK_FontFile2

DK_FontFile3

public static final COSName DK_FontFile3

DK_Length1

public static final COSName DK_Length1

DK_Length2

public static final COSName DK_Length2

DK_Length3

public static final COSName DK_Length3

DK_FontFamily

public static final COSName DK_FontFamily
Method Detail

setAscent

public void setAscent(int value)

getAscent

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

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

setAvgWidth

public void setAvgWidth(int value)

getAvgWidth

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

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

setCapHeight

public void setCapHeight(int value)

getCapHeight

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

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

setDescent

public void setDescent(int value)

getDescent

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

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

setFlags

public void setFlags(int value)

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

setFontBB

public void setFontBB(CDSRectangle rect)

getFontBB

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

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

setFontFamily

public void setFontFamily(String value)

getFontFamily

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

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

getFontFile

public byte[] getFontFile()
Overrides:
getFontFile in class PDFontDescriptor

setFontFile

public void setFontFile(byte[] data)
This is the type 1 fontfile stream It will try to parse the input, which must be a pfb file. Upon parsing, the keys length1, length2 and length3 will be determined. todo 2 Metadata key not supported


setFontFile2

public void setFontFile2(byte[] data)

getFontFile2

public byte[] getFontFile2()
Overrides:
getFontFile2 in class PDFontDescriptor

setFontFile3

public void setFontFile3(byte[] data)

getFontFile3

public byte[] getFontFile3()
Overrides:
getFontFile3 in class PDFontDescriptor

setFontName

public void setFontName(String value)

getFontName

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

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

setItalicAngle

public void setItalicAngle(float 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.

setLeading

public void setLeading(int value)

getLeading

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

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

setMaxWidth

public void setMaxWidth(int value)

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.

setMissingWidth

public void setMissingWidth(int value)

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.

setStemH

public void setStemH(int value)

getStemH

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

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

setStemV

public void setStemV(int value)

getStemV

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

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

setXHeight

public void setXHeight(int value)

getXHeight

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

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

removeFontFile2

public void removeFontFile2()

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.