Aspose::Font::FontFactory::Open method

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

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

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

ReturnValue

Font loaded.

See Also

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

Opens a font, using font type and stream source.

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

ReturnValue

Font loaded.

See Also

FontFactory::Open(FontType, System::String) method

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

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

ReturnValue

Font loaded.

See Also

FontFactory::Open(System::SharedPtr<Sources::FontDefinition>) method

Opens a font, using FontDefinition object.

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

ReturnValue

Font loaded.

See Also