FreeHEP API
Version current

org.freehep.graphicsio.pdf
Class PDFFontEmbedderType3

java.lang.Object
  extended byorg.freehep.graphicsio.font.FontIncluder
      extended byorg.freehep.graphicsio.font.FontEmbedder
          extended byorg.freehep.graphicsio.pdf.PDFFontEmbedder
              extended byorg.freehep.graphicsio.pdf.PDFFontEmbedderType3

public class PDFFontEmbedderType3
extends PDFFontEmbedder

Version:
$Id: PDFFontEmbedderType3.java,v 1.2 2005/01/04 00:45:55 duns Exp $
Author:
Simon Fischer
Source Code:
PDFFontEmbedderType3.java

Field Summary
 
Fields inherited from class org.freehep.graphicsio.pdf.PDFFontEmbedder
pdf
 
Fields inherited from class org.freehep.graphicsio.font.FontEmbedder
NOTDEF
 
Fields inherited from class org.freehep.graphicsio.font.FontIncluder
FONT_SIZE
 
Constructor Summary
PDFFontEmbedderType3(FontRenderContext context, PDFWriter pdf, String reference, PDFRedundanceTracker tracker)
           
 
Method Summary
protected  void addAdditionalEntries(PDFDictionary fontDict)
          Add additional entries to the font Dictionary.
protected  void addAdditionalInitDicts()
          Add additional dicionaries to the PDFWriter which may be referenced by entries generated by addAdditionalEntries()
protected  String getSubtype()
          Returns the font subtype (currently only Type3).
protected  void writeGlyph(String characterName, Shape glyph, GlyphMetrics glyphMetrics)
          Writes a single glyph to the file.
 
Methods inherited from class org.freehep.graphicsio.pdf.PDFFontEmbedder
closeEmbedFont, createCharacterReference, getReference, openIncludeFont, writeEncoding, writeEncoding, writeWidths
 
Methods inherited from class org.freehep.graphicsio.font.FontEmbedder
closeGlyphs, getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFont, openGlyphs
 
Methods inherited from class org.freehep.graphicsio.font.FontIncluder
closeIncludeFont, 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
 

Constructor Detail

PDFFontEmbedderType3

public PDFFontEmbedderType3(FontRenderContext context,
                            PDFWriter pdf,
                            String reference,
                            PDFRedundanceTracker tracker)
Method Detail

getSubtype

protected String getSubtype()
Description copied from class: PDFFontEmbedder
Returns the font subtype (currently only Type3).

Specified by:
getSubtype in class PDFFontEmbedder

addAdditionalEntries

protected void addAdditionalEntries(PDFDictionary fontDict)
                             throws IOException
Description copied from class: PDFFontEmbedder
Add additional entries to the font Dictionary.

Specified by:
addAdditionalEntries in class PDFFontEmbedder
Throws:
IOException

addAdditionalInitDicts

protected void addAdditionalInitDicts()
                               throws IOException
Description copied from class: PDFFontEmbedder
Add additional dicionaries to the PDFWriter which may be referenced by entries generated by addAdditionalEntries()

Specified by:
addAdditionalInitDicts in class PDFFontEmbedder
Throws:
IOException

writeGlyph

protected void writeGlyph(String characterName,
                          Shape glyph,
                          GlyphMetrics glyphMetrics)
                   throws IOException
Description copied from class: FontEmbedder
Writes a single glyph to the file. A null value for glyphMetrics indicates the undefined character. In this case the value of unicodeName equals the value of NOTDEF (=.notdef).

Specified by:
writeGlyph in class FontEmbedder
Parameters:
characterName - the character's name according to the unicode standard
glyph - the shape that represents this glyph
glyphMetrics - the metrics of this glyph
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.