I have found a solution. To do this, you need to go to a lower level in GlyphRunDrawing. Use here and replace GeometryDrawing with GlyphRunDrawing. Then run the GeometryGroup, which contains each symbol as Geometry, and do some test testing with the code:
GeometryGroup ggroup = (GeometryGroup)((GlyphRunDrawing)drawing).GlyphRun.BuildGeometry();
if(ggroup.FillContains(pt))
{
Debug.WriteLine("Contains point " + pt.ToString());
}
source
share