|
Vector Graphics, 2.4 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.freehep.graphicsio.font.FontIncluder
org.freehep.graphicsio.font.FontEmbedder
org.freehep.graphicsio.ps.PSFontEmbedder
public class PSFontEmbedder
Type 3 Font Embedder class for Postscript.
| Field Summary | |
|---|---|
protected int |
dictSize
|
protected PrintStream |
os
|
| Fields inherited from class org.freehep.graphicsio.font.FontEmbedder |
|---|
NOTDEF |
| Fields inherited from class org.freehep.graphicsio.font.FontIncluder |
|---|
FONT_SIZE |
| Constructor Summary | |
|---|---|
PSFontEmbedder(FontRenderContext context,
PrintStream os)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.freehep.graphicsio.font.FontEmbedder |
|---|
getAdvanceWidth, getAdvanceWidths, getGlyph, getGlyphMetrics, includeFont |
| Methods inherited from class org.freehep.graphicsio.font.FontIncluder |
|---|
getCharName, getContext, getEncodingTable, getFont, getFontBBox, getFontName, getNODefinedChars, getUndefinedWidth, getUnicode, getUnicode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int dictSize
protected PrintStream os
| Constructor Detail |
|---|
public PSFontEmbedder(FontRenderContext context,
PrintStream os)
| Method Detail |
|---|
protected void writeGlyph(String unicodeName,
Shape glyph,
GlyphMetrics glyphMetrics)
throws IOException
writeGlyph in class FontEmbedderIOException
protected void writeWidths(double[] widths)
throws IOException
writeWidths in class FontEmbedderIOException
protected void writeEncoding(CharTable charTable)
throws IOException
writeEncoding in class FontIncluderIOException
protected void openIncludeFont()
throws IOException
openIncludeFont in class FontIncluderIOException
protected void closeIncludeFont()
throws IOException
closeIncludeFont in class FontIncluderIOException
protected void writeBuildProcs()
throws IOException
IOException
protected void openGlyphs()
throws IOException
openGlyphs in class FontEmbedderIOException
protected void closeGlyphs()
throws IOException
closeGlyphs in class FontEmbedderIOException
protected void closeEmbedFont()
throws IOException
closeEmbedFont in class FontEmbedderIOException
|
Vector Graphics, 2.4 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||