Aspose::Font::Font::Open method

Font::Open(System::SharedPtr<Aspose::Font::Sources::FontDefinition>) method

Opens a font, using FontDefinition object.

static System::SharedPtr<Aspose::Font::Font> Aspose::Font::Font::Open(System::SharedPtr<Aspose::Font::Sources::FontDefinition> fontDefinition)
ParameterTypeDescription
fontDefinitionSystem::SharedPtr<Aspose::Font::Sources::FontDefinition>Font definition object.

ReturnValue

Font loaded.

See Also

Font::Open(Aspose::Font::FontType, System::SharedPtr<Sources::StreamSource>) method

Opens a font, using font type and stream source.

static System::SharedPtr<Aspose::Font::Font> Aspose::Font::Font::Open(Aspose::Font::FontType fontType, System::SharedPtr<Sources::StreamSource> fontStreamSource)
ParameterTypeDescription
fontTypeAspose::Font::FontTypeFont type.
fontStreamSourceSystem::SharedPtr<Sources::StreamSource>Stream source for font.

ReturnValue

Font loaded.

See Also

Font::Open(Aspose::Font::FontType, System::String) method

Opens a font, using font type and font file name.

static System::SharedPtr<Aspose::Font::Font> Aspose::Font::Font::Open(Aspose::Font::FontType fontType, System::String fileName)
ParameterTypeDescription
fontTypeAspose::Font::FontTypeFont type.
fileNameSystem::StringFont file name.

ReturnValue

Font loaded.

See Also

Font::Open(Aspose::Font::FontType, System::ArrayPtr<uint8_t>) method

Opens a font, using font type and font data byte array.

static System::SharedPtr<Aspose::Font::Font> Aspose::Font::Font::Open(Aspose::Font::FontType fontType, System::ArrayPtr<uint8_t> fontData)
ParameterTypeDescription
fontTypeAspose::Font::FontTypeFont type.
fontDataSystem::ArrayPtr<uint8_t>Byte array to load font from.

ReturnValue

Font loaded.

See Also