Package org.apache.fop.render.ps.fonts
Class PSTTFOutputStream
- java.lang.Object
-
- org.apache.fop.render.ps.fonts.PSTTFOutputStream
-
- All Implemented Interfaces:
TTFOutputStream
public class PSTTFOutputStream extends java.lang.Object implements TTFOutputStream
Streams a TrueType font according to the PostScript format.
-
-
Field Summary
Fields Modifier and Type Field Description private PSTTFGenerator
ttfGen
-
Constructor Summary
Constructors Constructor Description PSTTFOutputStream(org.apache.xmlgraphics.ps.PSGenerator gen)
Creates a new instance wrapping the given generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endFontStream()
Ends writing the font.TTFGlyphOutputStream
getGlyphOutputStream()
Returns an object for streaming TrueType glyphs in the glyf table.TTFTableOutputStream
getTableOutputStream()
Returns an object for streaming TrueType tables.void
startFontStream()
Starts writing the font.
-
-
-
Field Detail
-
ttfGen
private final PSTTFGenerator ttfGen
-
-
Method Detail
-
startFontStream
public void startFontStream() throws java.io.IOException
Description copied from interface:TTFOutputStream
Starts writing the font.- Specified by:
startFontStream
in interfaceTTFOutputStream
- Throws:
java.io.IOException
-
getTableOutputStream
public TTFTableOutputStream getTableOutputStream()
Description copied from interface:TTFOutputStream
Returns an object for streaming TrueType tables.- Specified by:
getTableOutputStream
in interfaceTTFOutputStream
-
getGlyphOutputStream
public TTFGlyphOutputStream getGlyphOutputStream()
Description copied from interface:TTFOutputStream
Returns an object for streaming TrueType glyphs in the glyf table.- Specified by:
getGlyphOutputStream
in interfaceTTFOutputStream
-
endFontStream
public void endFontStream() throws java.io.IOException
Description copied from interface:TTFOutputStream
Ends writing the font.- Specified by:
endFontStream
in interfaceTTFOutputStream
- Throws:
java.io.IOException
-
-