public SizeF MeasureString(string text, Font font, PointF origin, StringFormat stringFormat)
        {
            SKRect bound = new SKRect();

            font.SKPaint().MeasureText(text, ref bound);
            return(new SizeF(bound.Width /* + origin.X*/, bound.Height /* + origin.Y*/));
        }
        public SizeF MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat)
        {
            SKRect bound = new SKRect();

            font.SKPaint().MeasureText(text, ref bound);
            return(new SizeF(bound.Width, bound.Height));
        }
        public void DrawString(string s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
        {
            var pnt = brush.SKPaint();
            // Find the text bounds
            SKRect textBounds = SKRect.Empty;
            var    fnt        = font.SKPaint();

            fnt.MeasureText(s, ref textBounds);

            pnt.TextSize = fnt.TextSize;
            pnt.Typeface = fnt.Typeface;

            pnt.StrokeWidth = 1;
            _image.DrawText(s, layoutRectangle.X, layoutRectangle.Y + textBounds.Height, pnt);
        }