Cairo.ScaledFont.GlyphExtents C# (CSharp) Method

GlyphExtents() public method

public GlyphExtents ( Glyph glyphs ) : TextExtents
glyphs Glyph
return TextExtents
        public TextExtents GlyphExtents(Glyph[] glyphs)
        {
            CheckDisposed ();
            IntPtr ptr = Context.FromGlyphToUnManagedMemory (glyphs);
            TextExtents extents;

            NativeMethods.cairo_scaled_font_glyph_extents (handle, ptr, glyphs.Length, out extents);

            Marshal.FreeHGlobal (ptr);
            return extents;
        }