Esempio n. 1
0
        public virtual int AddFontFeature(
            DWRITE_FONT_FEATURE fontFeature
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_AddFontFeatureFunc == null)
            {
                m_AddFontFeatureFunc = (AddFontFeatureFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(AddFontFeatureFunc));
            }

            return(m_AddFontFeatureFunc(m_ptr, fontFeature));
        }
Esempio n. 2
0
        public virtual int GetFontFeature(
            uint fontFeatureIndex,
            out DWRITE_FONT_FEATURE fontFeature
            )
        {
            var fp = GetFunctionPointer(5);

            if (m_GetFontFeatureFunc == null)
            {
                m_GetFontFeatureFunc = (GetFontFeatureFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetFontFeatureFunc));
            }

            return(m_GetFontFeatureFunc(m_ptr, fontFeatureIndex, out fontFeature));
        }