|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.ps.PSFontUtils
public class PSFontUtils
Utility code for font handling in PostScript.
| Field Summary | |
|---|---|
static PSResource |
ADOBECYRILLIC_ENCODING_RESOURCE
the PSResource representing the AdobeStandardCyrillicEncoding. |
static PSResource |
WINANSI_ENCODING_RESOURCE
the PSResource representing the WinAnsiEncoding. |
| Constructor Summary | |
|---|---|
PSFontUtils()
|
|
| Method Summary | |
|---|---|
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,
InputStream in)
This method reads a Type 1 font from a stream and embeds it into a PostScript stream. |
static void |
redefineFontEncoding(PSGenerator gen,
String fontName,
String encoding)
Redefines the encoding of a font. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PSResource WINANSI_ENCODING_RESOURCE
public static final PSResource ADOBECYRILLIC_ENCODING_RESOURCE
| Constructor Detail |
|---|
public PSFontUtils()
| Method Detail |
|---|
public static void embedType1Font(PSGenerator gen,
InputStream in)
throws IOException
gen - The PostScript generatorin - the InputStream from which to read the Type 1 font
IOException - in case an I/O problem occurs
public static void defineWinAnsiEncoding(PSGenerator gen)
throws IOException
gen - the PostScript generator
IOException - In case of an I/O problem
public static void defineAdobeCyrillicEncoding(PSGenerator gen)
throws IOException
gen - the PostScript generator
IOException - In case of an I/O problem
public static void redefineFontEncoding(PSGenerator gen,
String fontName,
String encoding)
throws IOException
gen - the PostScript generatorfontName - the font nameencoding - the new encoding (must be predefined in the PS file)
IOException - In case of an I/O problem
|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||