Aspose::Pdf::Text::FontRepository::OpenFont‑metod

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

Öppnar teckensnitt med angiven teckensnittström.

static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::OpenFont(const System::SharedPtr<System::IO::Stream> &fontStream, const FontTypes &fontType)
ParameterTypBeskrivning
fontStreamconst System::SharedPtr<System::IO::Stream>&Font ström.
fontTypeconst FontTypes&Font typvärde.

ReturnValue

Font object.

Se även

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

Öppnar teckensnitt med angiven teckensnittsfilssökväg.

static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::OpenFont(const System::String &fontFilePath)
ParameterTypBeskrivning
fontFilePathconst System::String&Font filsökväg.

ReturnValue

Font object.

Se även

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

Öppnar teckensnitt med angiven teckensnittsfilssökväg och metrisfilssökväg.

static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::OpenFont(const System::String &fontFilePath, const System::String &metricsFilePath)
ParameterTypBeskrivning
fontFilePathconst System::String&Font filsökväg.
metricsFilePathconst System::String&Font metrikfilens sökväg.

ReturnValue

Font object.

Se även