Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET equivalent or alternative to Java's GlyphVector?

I'm in the process of porting a Java program to .NET using IKVM. Unfortunately IKVM's Graphics2D implementation throws a NotImplementedException in drawGlyphVector, i.e. it needs to be "fleshed out" with a .NET implementation (or by reducing it to calls of other IKVM Graphics2D methods which are implemented).

Any ideas for an equivalent in .NET which I could use to provide an implementation for that method in IKVM?


Edit #1: My first hunch was to simply call GlyphVector.getOutline() and then fill that shape. Unfortunately, getOutline() threw its own NotImplementedException.

Well it seems that now I'm looking for an alternative to GlyphVector itself: NetGlyphVector, the IKVM version of Glyphvector is basically just a stub class with nearly all methods currently throwing NotImplementedExceptions...

So does anyone know a .NET equivalent to Java's GlyphVector class?

like image 571
Epaga Avatar asked Mar 12 '09 15:03

Epaga


1 Answers

There is not an equivalent in .NET yet. From Microsoft's website:

In the Java language, this class represents a collection of glyphs and contains geometric information for the placement of each glyph in transformed coordinate space.

In the .NET Framework, there is no direct equivalent.

http://technet.microsoft.com/en-us/subscriptions/b6s81f68%28v=vs.80%29.aspx

You should probably just create your own class and implement the methods you need using the Java source, otherwise you will have to find another way to convert your code.

like image 182
Alex W Avatar answered Nov 03 '22 00:11

Alex W