Beispiel #1
0
        public Face(Blob blob, uint index)
            : this(IntPtr.Zero)
        {
            if (blob == null)
            {
                throw new ArgumentNullException(nameof(blob));
            }

            Handle = HarfBuzzApi.hb_face_create(blob.Handle, index);
        }
Beispiel #2
0
        public Face(Blob blob, int index)
            : this(IntPtr.Zero)
        {
            if (blob == null)
            {
                throw new ArgumentNullException(nameof(blob));
            }

            if (index < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(index), "Index must be non negative.");
            }

            Handle = HarfBuzzApi.hb_face_create(blob.Handle, index);
        }