jPod PDF library

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, de.intarsys.tools.attribute.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_CharSet
           
static COSName DK_CIDSet
           
static COSName DK_Descent
           
static COSName DK_FD
           
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_FontStretch
           
static COSName DK_FontWeight
           
static COSName DK_ItalicAngle
           
static COSName DK_Lang
           
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_Style
           
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
 COSStream cosGetFontFile()
           
 COSStream cosGetFontFile2()
           
 COSStream cosGetFontFile3()
           
 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.
 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.
 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".
 void removeFontFile2()
           
 void setAscent(int value)
           
 void setAvgWidth(int value)
           
 void setCapHeight(int value)
           
 void setCharSet(String charset)
           
 void setDescent(int value)
           
 void setFlags(int value)
           
 void setFlagsValue(int value)
           
 void setFontBB(CDSRectangle rect)
           
 void setFontFamily(String value)
           
 void setFontFile(byte[] data)
           
 void setFontFile2(byte[] data)
           
 void setFontFile3(byte[] data)
           
 void setFontName(String value)
           
 void setFontStretch(String stretch)
           
 void setFontWeight(int weight)
           
 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, isBuiltin, 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

DK_Ascent

public static final COSName DK_Ascent

DK_AvgWidth

public static final COSName DK_AvgWidth

DK_CapHeight

public static final COSName DK_CapHeight

DK_CharSet

public static final COSName DK_CharSet

DK_CIDSet

public static final COSName DK_CIDSet

DK_Descent

public static final COSName DK_Descent

DK_FD

public static final COSName DK_FD

DK_Flags

public static final COSName DK_Flags

DK_FontBBox

public static final COSName DK_FontBBox

DK_FontFamily

public static final COSName DK_FontFamily

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_FontName

public static final COSName DK_FontName

DK_FontStretch

public static final COSName DK_FontStretch

DK_FontWeight

public static final COSName DK_FontWeight

DK_ItalicAngle

public static final COSName DK_ItalicAngle

DK_Lang

public static final COSName DK_Lang

DK_Leading

public static final COSName DK_Leading

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_MaxWidth

public static final COSName DK_MaxWidth

DK_MissingWidth

public static final COSName DK_MissingWidth

DK_StemH

public static final COSName DK_StemH

DK_StemV

public static final COSName DK_StemV

DK_Style

public static final COSName DK_Style

DK_XHeight

public static final COSName DK_XHeight

META

public static final PDFontDescriptorEmbedded.MetaClass META
The meta class instance

Method Detail

cosGetFontFile

public COSStream cosGetFontFile()
Overrides:
cosGetFontFile in class PDFontDescriptor

cosGetFontFile2

public COSStream cosGetFontFile2()
Overrides:
cosGetFontFile2 in class PDFontDescriptor

cosGetFontFile3

public COSStream cosGetFontFile3()
Overrides:
cosGetFontFile3 in class PDFontDescriptor

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.

getFontFile

public byte[] getFontFile()
Description copied from class: PDFontDescriptor
The data making up a Type1 font program.

Overrides:
getFontFile in class PDFontDescriptor
Returns:
The data making up a Type1 font program.

getFontFile2

public byte[] getFontFile2()
Description copied from class: PDFontDescriptor
The data making up a TrueType font program

Overrides:
getFontFile2 in class PDFontDescriptor
Returns:
The data making up a TrueType font program

getFontFile3

public byte[] getFontFile3()
Description copied from class: PDFontDescriptor
data for a font type specified in the /Subtpye entry of the stream dictionary.

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

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

removeFontFile2

public void removeFontFile2()

setAscent

public void setAscent(int value)

setAvgWidth

public void setAvgWidth(int value)

setCapHeight

public void setCapHeight(int value)

setCharSet

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

setDescent

public void setDescent(int value)

setFlags

public void setFlags(int value)

setFlagsValue

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

setFontBB

public void setFontBB(CDSRectangle rect)

setFontFamily

public void setFontFamily(String value)
Overrides:
setFontFamily in class PDFontDescriptor

setFontFile

public void setFontFile(byte[] data)
Overrides:
setFontFile in class PDFontDescriptor

setFontFile2

public void setFontFile2(byte[] data)
Overrides:
setFontFile2 in class PDFontDescriptor

setFontFile3

public void setFontFile3(byte[] data)
Overrides:
setFontFile3 in class PDFontDescriptor

setFontName

public void setFontName(String value)
Overrides:
setFontName 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

setItalicAngle

public void setItalicAngle(float value)

setLeading

public void setLeading(int value)

setMaxWidth

public void setMaxWidth(int value)

setMissingWidth

public void setMissingWidth(int value)

setStemH

public void setStemH(int value)

setStemV

public void setStemV(int value)

setXHeight

public void setXHeight(int value)

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.