org.freehep.graphicsio.svg
Class SVGGlyph
java.lang.Object
org.freehep.graphicsio.svg.SVGGlyph
public class SVGGlyph
- extends java.lang.Object
Class for embedding a Font in a SVG file.
- Version:
- $Id: SVGGlyph.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Steffen Greiffenberg
Constructor Summary |
SVGGlyph(java.awt.Shape glyph,
int unicode,
java.awt.font.GlyphMetrics glyphMetrics)
stores the glyph data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FONT_SIZE
public static int FONT_SIZE
UNITS_PER_EM
public static int UNITS_PER_EM
SVGGlyph
public SVGGlyph(java.awt.Shape glyph,
int unicode,
java.awt.font.GlyphMetrics glyphMetrics)
- stores the glyph data
- Parameters:
unicode
- glyph
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getPathString
protected java.lang.String getPathString()
- Returns:
- SVG path tag using SVGGraphics2D and defaultTransform
getHorizontalAdvanceXString
public java.lang.String getHorizontalAdvanceXString()
- Returns:
- SVG tag horiz-adv-x
getHorizontalAdvanceYString
public java.lang.String getHorizontalAdvanceYString()
- Returns:
- SVG tag horiz-adv-y
Copyright © 2000-2007 FreeHEP. All Rights Reserved.