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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With