FreeHEP API
Version current

org.freehep.graphicsio.pdf
Class PDFFontEmbedderType1

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

public class PDFFontEmbedderType1
extends FontEmbedderType1

Font embedder for type one fonts in pdf documents.

Version:
$Id: PDFFontEmbedderType1.java,v 1.4 2005/01/04 00:45:54 duns Exp $
Author:
Simon Fischer
Source Code:
PDFFontEmbedderType1.java

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(FontRenderContext context, PDFWriter pdf, 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(FontRenderContext context,
                                          PDFWriter pdf,
                                          String reference,
                                          PDFRedundanceTracker tracker)

openIncludeFont

protected void openIncludeFont()
                        throws 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:
IOException

writeWidths

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

Overrides:
writeWidths in class FontEmbedderType1
Throws:
IOException

openGlyphs

protected void openGlyphs()
                   throws 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:
IOException

closeEmbedFont

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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.