sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.68k stars 641 forks source link

ColorGlyphRun has missing marshalling code #1070

Open Gillibald opened 5 years ago

Gillibald commented 5 years ago

I am trying to use ColorGlyphRunEnumerator in our text rendering code to support color fonts but it looks like it has some missing bits.

Every time I try to get the current run I get an NullReferenceException at ColorGlyphRunEnumerator.get_CurrentRun(). So I checked the existing code for the normal GlyphRun and it seems it has some custom marshalling wheras ColorGlyphRun has none. I have a feeling thats the reason we get that exception.

Any help getting this to work is appreciated.