コード例 #1
0
        public virtual int GetFamilyNames(
            out IDWriteLocalizedStrings names
            )
        {
            var fp = GetFunctionPointer(6);

            if (m_GetFamilyNamesFunc == null)
            {
                m_GetFamilyNamesFunc = (GetFamilyNamesFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetFamilyNamesFunc));
            }
            names = new IDWriteLocalizedStrings();
            return(m_GetFamilyNamesFunc(m_ptr, out names.PtrForNew));
        }
コード例 #2
0
ファイル: IDWriteFont.cs プロジェクト: ousttrue/ShrimpDX
        public virtual int GetInformationalStrings(
            DWRITE_INFORMATIONAL_STRING_ID informationalStringID,
            out IDWriteLocalizedStrings informationalStrings,
            out int exists
            )
        {
            var fp = GetFunctionPointer(9);

            if (m_GetInformationalStringsFunc == null)
            {
                m_GetInformationalStringsFunc = (GetInformationalStringsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetInformationalStringsFunc));
            }
            informationalStrings = new IDWriteLocalizedStrings();
            return(m_GetInformationalStringsFunc(m_ptr, informationalStringID, out informationalStrings.PtrForNew, out exists));
        }