FT_New_Size() private method

private FT_New_Size ( IntPtr face, IntPtr &size ) : System.Error
face System.IntPtr
size System.IntPtr
return System.Error
Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        /// <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;
        }