public class PSFontEmbedder extends FontEmbedder
Modifier and Type | Field and Description |
---|---|
protected int |
dictSize |
protected PrintStream |
os |
NOTDEF
FONT_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, includeFont
getCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicode
protected 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 FontEmbedder
unicodeName
- the character's name according to the unicode standardglyph
- the shape that represents this glyphglyphMetrics
- the metrics of this glyphIOException
protected void writeWidths(double[] widths) throws IOException
writeWidths
in class FontEmbedder
IOException
protected void writeEncoding(CharTable charTable) throws IOException
writeEncoding
in class FontIncluder
IOException
protected void openIncludeFont() throws IOException
openIncludeFont
in class FontIncluder
IOException
protected void closeIncludeFont() throws IOException
closeIncludeFont
in class FontIncluder
IOException
protected void writeBuildProcs() throws IOException
IOException
protected void openGlyphs() throws IOException
openGlyphs
in class FontEmbedder
IOException
protected void closeGlyphs() throws IOException
closeGlyphs
in class FontEmbedder
IOException
protected void closeEmbedFont() throws IOException
closeEmbedFont
in class FontEmbedder
IOException
Copyright © 2014. All rights reserved.