From 7fda121546a7c2436785a5eb124c5590066a54ad Mon Sep 17 00:00:00 2001 From: smallsql Date: Wed, 13 Feb 2013 09:45:41 +0000 Subject: implements getGlyphOutline --- openjdk/sun/font/StandardGlyphVector.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'openjdk/sun') 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,10 +187,17 @@ 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(); -- cgit v1.2.3