Aspose::Page::XPS::XpsDocument::CreateFont method

XpsDocument::CreateFont(System::SharedPtr<System::IO::Stream>) method

从流创建一个新的 TrueType 字体资源。

System::SharedPtr<XpsModel::XpsFont> Aspose::Page::XPS::XpsDocument::CreateFont(System::SharedPtr<System::IO::Stream> stream)
ParameterType描述
System::SharedPtr<System::IO::Stream>包含 ICC 配置文件以用作资源的流。

ReturnValue

新的 TrueType 字体资源。

另见

XpsDocument::CreateFont(System::String, System::Drawing::FontStyle) method

创建一个新的 TrueType 字体资源。

System::SharedPtr<XpsModel::XpsFont> Aspose::Page::XPS::XpsDocument::CreateFont(System::String fontFamily, System::Drawing::FontStyle fontStyle)
ParameterType描述
fontFamilySystem::String字体族。
fontStyleSystem::Drawing::FontStyle字体样式。

ReturnValue

新的 TrueType 字体资源。

另见