FT_New_Size() 개인적인 메소드

private FT_New_Size ( IntPtr face, IntPtr &size ) : System.Error
face System.IntPtr
size System.IntPtr
리턴 System.Error
예제 #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);
        }
예제 #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;
        }