Open poweryang1 opened 6 years ago
afaik, GlyphRun.glyphCount has never been made public since its creation
Not sure how did you get any access to it...
Reflection? :)
Umm.
In case of custom TextRendererBase class, I should override DrawGlyphRun() method.
public override Result DrawGlyphRun(object clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, ComObject clientDrawingEffect);
In that DrawGlyphRun() method, I use glyphRun.FontFace.GetGlyphRunOutline() method call.
'glyphRun.FontFace.GetGlyphRunOutline()' method call needs a 'glyphCount' argument.
How do I get a 'glyphCount'??
You have it through the arrays .Length. You can make a PR to provide this as a readonly variable if you want.
I just update SharpDX 4.0.1 -> SharpDX 4.1.0.
SharpDX.DirectWrite.GlyphRun doesn't have 'glyphCount' member.
Please fix it.