Aspose::Font::FontFactory::Open 方法

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

使用字体类型和字体数据字节数组打开字体。

System::SharedPtr<Font> Aspose::Font::FontFactory::Open(FontType fontType, System::ArrayPtr<uint8_t> fontData)
参数类型描述
fontTypeFontTypeFont 类型。
fontDataSystem::ArrayPtr<uint8_t>用于加载字体的字节数组。

ReturnValue

Font loaded.

另见

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

使用字体类型和流源打开字体。

System::SharedPtr<Font> Aspose::Font::FontFactory::Open(FontType fontType, System::SharedPtr<Sources::StreamSource> fontStreamSource)
参数类型描述
fontTypeFontTypeFont 类型。
fontStreamSourceSystem::SharedPtr<Sources::StreamSource>字体的流源。

ReturnValue

Font loaded.

另见

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

使用字体类型和字体文件名打开字体。

System::SharedPtr<Font> Aspose::Font::FontFactory::Open(FontType fontType, System::String fileName)
参数类型描述
fontTypeFontTypeFont 类型。
fileNameSystem::StringFont 文件名。

ReturnValue

Font loaded.

另见

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

使用 FontDefinition 对象打开字体。

System::SharedPtr<Font> Aspose::Font::FontFactory::Open(System::SharedPtr<Sources::FontDefinition> fontDefinition)
参数类型描述
fontDefinitionSystem::SharedPtr<Sources::FontDefinition>Font 定义对象。

ReturnValue

Font loaded.

另见