xmlgraphics-commons 1.0

org.apache.xmlgraphics.ps
Class PSFontUtils

java.lang.Object
  extended byorg.apache.xmlgraphics.ps.PSFontUtils

public class PSFontUtils
extends java.lang.Object

Utility code for font handling in PostScript.


Constructor Summary
PSFontUtils()
           
 
Method Summary
static void defineWinAnsiEncoding(PSGenerator gen)
          Defines the WinAnsi encoding for use in PostScript files.
static void embedType1Font(PSGenerator gen, java.io.InputStream in)
          This method reads a Type 1 font from a stream and embeds it into a PostScript stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSFontUtils

public PSFontUtils()
Method Detail

embedType1Font

public static void embedType1Font(PSGenerator gen,
                                  java.io.InputStream in)
                           throws java.io.IOException
This method reads a Type 1 font from a stream and embeds it into a PostScript stream. Note: Only the IBM PC Format as described in section 3.3 of the Adobe Technical Note #5040 is supported.

Parameters:
gen - The PostScript generator
in - the InputStream from which to read the Type 1 font
Throws:
java.io.IOException - in case an I/O problem occurs

defineWinAnsiEncoding

public static void defineWinAnsiEncoding(PSGenerator gen)
                                  throws java.io.IOException
Defines the WinAnsi encoding for use in PostScript files.

Parameters:
gen - the PostScript generator
Throws:
java.io.IOException - In case of an I/O problem

xmlgraphics-commons 1.0

Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.