|
fop 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
org.apache.fop.render.ps.PSFontUtils
public class PSFontUtils
Utility code for font handling in PostScript.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
logging instance |
Fields inherited from class org.apache.xmlgraphics.ps.PSFontUtils |
---|
ADOBECYRILLIC_ENCODING_RESOURCE, WINANSI_ENCODING_RESOURCE |
Constructor Summary | |
---|---|
PSFontUtils()
|
Method Summary | |
---|---|
static org.apache.xmlgraphics.ps.PSResource |
defineDerivedFont(org.apache.xmlgraphics.ps.PSGenerator gen,
java.lang.String baseFontName,
java.lang.String fontName,
java.lang.String encoding)
Derives a new font based on an existing font with a given encoding. |
static org.apache.xmlgraphics.ps.PSResource |
defineEncoding(org.apache.xmlgraphics.ps.PSGenerator gen,
SingleByteEncoding encoding)
Defines the single-byte encoding for use in PostScript files. |
static java.util.Map |
determineSuppliedFonts(org.apache.xmlgraphics.ps.dsc.ResourceTracker resTracker,
FontInfo fontInfo,
java.util.Map<java.lang.String,Typeface> fonts)
Determines the set of fonts that will be supplied with the PS file and registers them with the resource tracker. |
static java.util.Map |
writeFontDict(org.apache.xmlgraphics.ps.PSGenerator gen,
FontInfo fontInfo)
Generates the PostScript code for the font dictionary. |
static java.util.Map |
writeFontDict(org.apache.xmlgraphics.ps.PSGenerator gen,
FontInfo fontInfo,
java.util.Map<java.lang.String,Typeface> fonts,
PSEventProducer eventProducer)
Generates the PostScript code for the font dictionary. |
static java.util.Map |
writeFontDict(org.apache.xmlgraphics.ps.PSGenerator gen,
FontInfo fontInfo,
PSEventProducer eventProducer)
Generates the PostScript code for the font dictionary. |
Methods inherited from class org.apache.xmlgraphics.ps.PSFontUtils |
---|
defineAdobeCyrillicEncoding, defineWinAnsiEncoding, embedType1Font, redefineFontEncoding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
Constructor Detail |
---|
public PSFontUtils()
Method Detail |
---|
public static java.util.Map writeFontDict(org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo) throws java.io.IOException
gen
- PostScript generator to use for outputfontInfo
- available fonts
java.io.IOException
- in case of an I/O problempublic static java.util.Map writeFontDict(org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo, PSEventProducer eventProducer) throws java.io.IOException
gen
- PostScript generator to use for outputfontInfo
- available fontseventProducer
- to report events
java.io.IOException
- in case of an I/O problempublic static java.util.Map writeFontDict(org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo, java.util.Map<java.lang.String,Typeface> fonts, PSEventProducer eventProducer) throws java.io.IOException
gen
- PostScript generator to use for outputfontInfo
- available fontsfonts
- the set of fonts to work witheventProducer
- the event producer
java.io.IOException
- in case of an I/O problempublic static java.util.Map determineSuppliedFonts(org.apache.xmlgraphics.ps.dsc.ResourceTracker resTracker, FontInfo fontInfo, java.util.Map<java.lang.String,Typeface> fonts)
resTracker
- the resource trackerfontInfo
- available fontsfonts
- the set of fonts to work with
public static org.apache.xmlgraphics.ps.PSResource defineEncoding(org.apache.xmlgraphics.ps.PSGenerator gen, SingleByteEncoding encoding) throws java.io.IOException
gen
- the PostScript generatorencoding
- the single-byte encoding
java.io.IOException
- In case of an I/O problempublic static org.apache.xmlgraphics.ps.PSResource defineDerivedFont(org.apache.xmlgraphics.ps.PSGenerator gen, java.lang.String baseFontName, java.lang.String fontName, java.lang.String encoding) throws java.io.IOException
gen
- the PostScript generatorbaseFontName
- the font name of the font to derive fromfontName
- the font name of the new font to be defineencoding
- the new encoding (must be predefined in the PS file)
java.io.IOException
- In case of an I/O problem
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |