org.freehep.graphicsio.pdf
Class PDFFontEmbedderType1

java.lang.Object
  extended by org.freehep.graphicsio.font.FontIncluder
      extended by org.freehep.graphicsio.font.FontEmbedder
          extended by org.freehep.graphicsio.font.FontEmbedderType1
              extended by org.freehep.graphicsio.pdf.PDFFontEmbedderType1

public class PDFFontEmbedderType1
extends FontEmbedderType1

Font embedder for type one fonts in pdf documents.

Version:
$Id: PDFFontEmbedderType1.java 8584 2006-08-10 23:06:37Z duns $
Author:
Simon Fischer

Field Summary
 
Fields inherited from class org.freehep.graphicsio.font.FontEmbedder
NOTDEF
 
Fields inherited from class org.freehep.graphicsio.font.FontIncluder
FONT_SIZE
 
Method Summary
protected  void closeEmbedFont()
           
static PDFFontEmbedderType1 create(java.awt.font.FontRenderContext context, PDFWriter pdf, java.lang.String reference, PDFRedundanceTracker tracker)
           
protected  void openGlyphs()
          Called before the glyph loop starts.
protected  void openIncludeFont()
          Writes the given information about the font into the file.
protected  void writeWidths(double[] widths)
          Writes the character widths to the file.
 
Methods inherited from class org.freehep.graphicsio.font.FontEmbedderType1
closeGlyphs, closeIncludeFont, getAsciiLength, getEncryptedLength, writeEncoding, writeGlyph
 
Methods inherited from class org.freehep.graphicsio.font.FontEmbedder
getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFont
 
Methods inherited from class org.freehep.graphicsio.font.FontIncluder
getCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static PDFFontEmbedderType1 create(java.awt.font.FontRenderContext context,
                                          PDFWriter pdf,
                                          java.lang.String reference,
                                          PDFRedundanceTracker tracker)

openIncludeFont

protected void openIncludeFont()
                        throws java.io.IOException
Description copied from class: FontIncluder
Writes the given information about the font into the file. When this method is called all getXXX() are guaranteed to return reasonable values.

Overrides:
openIncludeFont in class FontEmbedderType1
Throws:
java.io.IOException

writeWidths

protected void writeWidths(double[] widths)
                    throws java.io.IOException
Description copied from class: FontEmbedder
Writes the character widths to the file.

Overrides:
writeWidths in class FontEmbedderType1
Throws:
java.io.IOException

openGlyphs

protected void openGlyphs()
                   throws java.io.IOException
Description copied from class: FontEmbedder
Called before the glyph loop starts. Does nothing by default but can be implemented.

Overrides:
openGlyphs in class FontEmbedderType1
Throws:
java.io.IOException

closeEmbedFont

protected void closeEmbedFont()
                       throws java.io.IOException
Overrides:
closeEmbedFont in class FontEmbedderType1
Throws:
java.io.IOException


Copyright © 2000-2007 FreeHEP. All Rights Reserved.