org.freehep.graphicsio.svg
Class SVGGlyph

java.lang.Object
  extended by 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

Field Summary
static int FONT_SIZE
           
static int UNITS_PER_EM
           
 
Constructor Summary
SVGGlyph(java.awt.Shape glyph, int unicode, java.awt.font.GlyphMetrics glyphMetrics)
          stores the glyph data
 
Method Summary
 java.lang.String getHorizontalAdvanceXString()
           
 java.lang.String getHorizontalAdvanceYString()
           
protected  java.lang.String getPathString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FONT_SIZE

public static int FONT_SIZE

UNITS_PER_EM

public static int UNITS_PER_EM
Constructor Detail

SVGGlyph

public SVGGlyph(java.awt.Shape glyph,
                int unicode,
                java.awt.font.GlyphMetrics glyphMetrics)
stores the glyph data

Parameters:
unicode -
glyph -
Method Detail

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.