Aspose::Pdf::Text::FontRepository::OpenFont method

FontRepository::OpenFont(System::SharedPtr<System::IO::Stream>, FontTypes) method

Opens font with specified font stream.

static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::OpenFont(System::SharedPtr<System::IO::Stream> fontStream, FontTypes fontType)
ParameterTypeDescription
fontStreamSystem::SharedPtr<System::IO::Stream>Font stream.
fontTypeFontTypesFont type value.

ReturnValue

Font object.

See Also

FontRepository::OpenFont(System::String) method

Opens font with specified font file path.

static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::OpenFont(System::String fontFilePath)
ParameterTypeDescription
fontFilePathSystem::StringFont file path.

ReturnValue

Font object.

See Also

FontRepository::OpenFont(System::String, System::String) method

Opens font with specified font file path and metrics file path.

static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::OpenFont(System::String fontFilePath, System::String metricsFilePath)
ParameterTypeDescription
fontFilePathSystem::StringFont file path.
metricsFilePathSystem::StringFont metrics file patrh.

ReturnValue

Font object.

See Also