Interface TTFGlyphOutputStream
public interface TTFGlyphOutputStream
An interface for writing individual glyphs from the glyf table of a TrueType font to an output stream.
-
Method Summary
Modifier and Type Method Description voidendGlyphStream()Ends the streaming of glyphs.voidstartGlyphStream()Begins the streaming of glyphs.voidstreamGlyph(byte[] glyphData, int offset, int size)Streams an individual glyph from the given byte array.
-
Method Details
-
startGlyphStream
void startGlyphStream() throws java.io.IOExceptionBegins the streaming of glyphs.- Throws:
java.io.IOException
-
streamGlyph
void streamGlyph(byte[] glyphData, int offset, int size) throws java.io.IOExceptionStreams an individual glyph from the given byte array.- 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:
java.io.IOException
-
endGlyphStream
void endGlyphStream() throws java.io.IOExceptionEnds the streaming of glyphs.- Throws:
java.io.IOException
-