diff options
author | smallsql <smallsql> | 2013-02-13 13:45:41 +0400 |
---|---|---|
committer | smallsql <smallsql> | 2013-02-13 13:45:41 +0400 |
commit | 7fda121546a7c2436785a5eb124c5590066a54ad (patch) | |
tree | 8ff35b5470c1c1935f5882c58ac95e1b59bc2fab /openjdk | |
parent | 501188311d3bead5420eb42c5ad3c7592840b768 (diff) |
implements getGlyphOutline
Diffstat (limited to 'openjdk')
-rw-r--r-- | openjdk/sun/font/StandardGlyphVector.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/openjdk/sun/font/StandardGlyphVector.java b/openjdk/sun/font/StandardGlyphVector.java index 72fd3cc8..aec6572e 100644 --- a/openjdk/sun/font/StandardGlyphVector.java +++ b/openjdk/sun/font/StandardGlyphVector.java @@ -1,5 +1,5 @@ /* - Copyright (C) 2009 - 2011 Volker Berlin (i-net software) + Copyright (C) 2009 - 2013 Volker Berlin (i-net software) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages @@ -187,11 +187,18 @@ public class StandardGlyphVector extends GlyphVector{ } @Override - public Shape getGlyphOutline(int ix) { - throw new NotYetImplementedError(); + public Shape getGlyphOutline( int glyphIndex ) { + return getGlyphOutline( glyphIndex, 0, 0 ); } @Override + public Shape getGlyphOutline( int glyphIndex, float x, float y ) { + initPositions(); + + return IkvmToolkit.DefaultToolkit.get().outline( font, frc, glyphs.substring( glyphIndex, glyphIndex + 1 ), x + positions[glyphIndex * 2], y ); + } + + @Override public Point2D getGlyphPosition(int ix) { initPositions(); |