FreeHEP API
Version v1.2

org.freehep.graphicsio.pdf
Class PDFFontEmbedderType1

java.lang.Object
  |
  +--org.freehep.graphicsio.font.FontIncluder
        |
        +--org.freehep.graphicsio.font.FontEmbedder
              |
              +--org.freehep.graphicsio.font.FontEmbedderType1
                    |
                    +--org.freehep.graphicsio.pdf.PDFFontEmbedderType1

public class PDFFontEmbedderType1
extends FontEmbedderType1

Font embedder for type one fonts in pdf documents.

Version:
$Id: PDFFontEmbedderType1.java,v 1.3 2003/05/01 06:15:14 duns Exp $
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(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
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
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
IOException

closeEmbedFont

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

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.