public class PSFontEmbedder extends FontEmbedder
| Modifier and Type | Field and Description |
|---|---|
protected int |
dictSize |
protected PrintStream |
os |
NOTDEFFONT_SIZE| Constructor and Description |
|---|
PSFontEmbedder(FontRenderContext context,
PrintStream os) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeEmbedFont()
Closes font dictionary.
|
protected void |
closeGlyphs()
Closes Glyphs dictionary.
|
protected void |
closeIncludeFont()
Closes font dictionary.
|
protected void |
openGlyphs()
Writes necessary commands to find Glyphs dictionary from font
dictionary and puts it on the stack, opens dictionary to write glyph
definitions.
|
protected void |
openIncludeFont()
Writes initial parts of the font dictionary.
|
protected void |
writeBuildProcs() |
protected void |
writeEncoding(CharTable charTable)
writes encoding array.
|
protected void |
writeGlyph(String unicodeName,
Shape glyph,
GlyphMetrics glyphMetrics)
Writes Glyph definition of given glyph.
|
protected void |
writeWidths(double[] widths)
writes metric dictionary for the font.
|
getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFontgetCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicodeprotected int dictSize
protected PrintStream os
public PSFontEmbedder(FontRenderContext context, PrintStream os)
protected void writeGlyph(String unicodeName, Shape glyph, GlyphMetrics glyphMetrics) throws IOException
writeGlyph in class FontEmbedderunicodeName - the character's name according to the unicode standardglyph - the shape that represents this glyphglyphMetrics - the metrics of this glyphIOExceptionprotected void writeWidths(double[] widths)
throws IOException
writeWidths in class FontEmbedderIOExceptionprotected void writeEncoding(CharTable charTable) throws IOException
writeEncoding in class FontIncluderIOExceptionprotected void openIncludeFont()
throws IOException
openIncludeFont in class FontIncluderIOExceptionprotected void closeIncludeFont()
throws IOException
closeIncludeFont in class FontIncluderIOExceptionprotected void writeBuildProcs()
throws IOException
IOExceptionprotected void openGlyphs()
throws IOException
openGlyphs in class FontEmbedderIOExceptionprotected void closeGlyphs()
throws IOException
closeGlyphs in class FontEmbedderIOExceptionprotected void closeEmbedFont()
throws IOException
closeEmbedFont in class FontEmbedderIOExceptionCopyright © 2014. All rights reserved.