/** FAST */
public static bool CheckTextExtents(Context cr, TextExtents te, double x, double y)
{
bool retval = false;
cr.Save ();
PointD pt = cr.CurrentPoint;
cr.NewPath ();
cr.Rectangle (pt.X, pt.Y, te.Width, te.Height);
cr.IdentityMatrix ();
retval = cr.InFill (x, y);
if (ShowTextExtents) {
cr.Operator = Operator.Over;
cr.Color = new Color (1,0.5,1,0.5);
cr.LineWidth = 0.5;
cr.Stroke ();
}
cr.Restore ();
cr.MoveTo (pt.X, pt.Y);
return retval;
}