public class PSFontUtils
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static PSResource |
ADOBECYRILLIC_ENCODING_RESOURCE |
the PSResource representing the AdobeStandardCyrillicEncoding.
|
static PSResource |
WINANSI_ENCODING_RESOURCE |
the PSResource representing the WinAnsiEncoding.
|
Constructor | Description |
---|---|
PSFontUtils() |
Modifier and Type | Method | Description |
---|---|---|
static void |
defineAdobeCyrillicEncoding(PSGenerator gen) |
Defines the AdobeStandardCyrillic encoding for use in PostScript files.
|
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.
|
static void |
redefineFontEncoding(PSGenerator gen,
java.lang.String fontName,
java.lang.String encoding) |
Redefines the encoding of a font.
|
public static final PSResource WINANSI_ENCODING_RESOURCE
public static final PSResource ADOBECYRILLIC_ENCODING_RESOURCE
public static void embedType1Font(PSGenerator gen, java.io.InputStream in) throws java.io.IOException
gen
- The PostScript generatorin
- the InputStream from which to read the Type 1 fontjava.io.IOException
- in case an I/O problem occurspublic static void defineWinAnsiEncoding(PSGenerator gen) throws java.io.IOException
gen
- the PostScript generatorjava.io.IOException
- In case of an I/O problempublic static void defineAdobeCyrillicEncoding(PSGenerator gen) throws java.io.IOException
gen
- the PostScript generatorjava.io.IOException
- In case of an I/O problempublic static void redefineFontEncoding(PSGenerator gen, java.lang.String fontName, java.lang.String encoding) throws java.io.IOException
gen
- the PostScript generatorfontName
- the font nameencoding
- the new encoding (must be predefined in the PS file)java.io.IOException
- In case of an I/O problemCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.