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

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

Opens font with specified font stream.

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

ReturnValue

Font object.

See Also

FontRepository::OpenFont(const System::String&) method

Opens font with specified font file path.

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

ReturnValue

Font object.

See Also

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

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

static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::OpenFont(const System::String &fontFilePath, const System::String &metricsFilePath)
ParameterTypeDescription
fontFilePathconst System::String&Font file path.
metricsFilePathconst System::String&Font metrics file patrh.

ReturnValue

Font object.

See Also