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

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

Creates a new TrueType font resource out of stream.

System::SharedPtr<XpsModel::XpsFont> Aspose::Page::XPS::XpsDocument::CreateFont(System::SharedPtr<System::IO::Stream> stream)
ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>The stream containing the ICC profile to take as a resource.

ReturnValue

New TrueType font resource.

See Also

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

Creates a new TrueType font resource.

System::SharedPtr<XpsModel::XpsFont> Aspose::Page::XPS::XpsDocument::CreateFont(System::String fontFamily, System::Drawing::FontStyle fontStyle)
ParameterTypeDescription
fontFamilySystem::StringThe font family.
fontStyleSystem::Drawing::FontStyleThe font style.

ReturnValue

New TrueType font resource.

See Also