private static IntPtr NewSize(Face parent) { IntPtr reference; Error err = FT.FT_New_Size(parent.Reference, out reference); if (err != Error.Ok) { throw new FreeTypeException(err); } return(reference); }
/// <summary> /// Initializes a new instance of the <see cref="FTSize"/> class. /// </summary> /// <param name="parent">The parent face.</param> public FTSize(Face parent) { IntPtr reference; Error err = FT.FT_New_Size(parent.Reference, out reference); if (err != Error.Ok) { throw new FreeTypeException(err); } Reference = reference; userAlloc = true; }