/// <summary> /// A function used to extract a glyph image from a slot. Note that the created <see cref="Glyph"/> object must /// be released with <see cref="Glyph.Dispose()"/>. /// </summary> /// <returns>A handle to the glyph object.</returns> public Glyph GetGlyph() { IntPtr glyphRef; Error err = FT.FT_Get_Glyph(Reference, out glyphRef); if (err != Error.Ok) { throw new FreeTypeException(err); } return(new Glyph(glyphRef, Library)); }