Package org.apache.fop.render.ps.fonts
Class PSTTFGlyphOutputStream
java.lang.Object
org.apache.fop.render.ps.fonts.PSTTFGlyphOutputStream
- All Implemented Interfaces:
TTFGlyphOutputStream
Streams glyphs in accordance with the constraints of the PostScript file format.
Mainly, PostScript strings have a limited capacity and the font data may have to be
broken down into several strings; however, this must occur at well-defined places like
table or glyph boundaries. See also Adobe Technical Note #5012, The Type 42 Font
Format Specification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Ends the streaming of glyphs.void
Begins the streaming of glyphs.void
streamGlyph
(byte[] glyphData, int offset, int size) Streams an individual glyph from the given byte array.
-
Constructor Details
-
PSTTFGlyphOutputStream
Constructor- Parameters:
ttfGen
- PSTTFGenerator
-
-
Method Details
-
startGlyphStream
Description copied from interface:TTFGlyphOutputStream
Begins the streaming of glyphs.- Specified by:
startGlyphStream
in interfaceTTFGlyphOutputStream
- Throws:
IOException
-
streamGlyph
Description copied from interface:TTFGlyphOutputStream
Streams an individual glyph from the given byte array.- Specified by:
streamGlyph
in interfaceTTFGlyphOutputStream
- Parameters:
glyphData
- the source of the glyph data to stream fromoffset
- the position in the glyph data where the glyph startssize
- the size of the glyph data in bytes- Throws:
IOException
-
endGlyphStream
Description copied from interface:TTFGlyphOutputStream
Ends the streaming of glyphs.- Specified by:
endGlyphStream
in interfaceTTFGlyphOutputStream
- Throws:
IOException
-