public virtual int ConvertFontFaceToLOGFONT( IDWriteFontFace font, out tagLOGFONTW logFont ) { var fp = GetFunctionPointer(5); if (m_ConvertFontFaceToLOGFONTFunc == null) { m_ConvertFontFaceToLOGFONTFunc = (ConvertFontFaceToLOGFONTFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ConvertFontFaceToLOGFONTFunc)); } return(m_ConvertFontFaceToLOGFONTFunc(m_ptr, font != null ? font.Ptr : IntPtr.Zero, out logFont)); }
public virtual int CreateFontFromLOGFONT( ref tagLOGFONTW logFont, out IDWriteFont font ) { var fp = GetFunctionPointer(3); if (m_CreateFontFromLOGFONTFunc == null) { m_CreateFontFromLOGFONTFunc = (CreateFontFromLOGFONTFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateFontFromLOGFONTFunc)); } font = new IDWriteFont(); return(m_CreateFontFromLOGFONTFunc(m_ptr, ref logFont, out font.PtrForNew)); }