FontDefinition.Open
Open(string, FontType)
返回针对字体文件和字体类型的 FontDefinition。
public static FontDefinition Open(string fileName, FontType fontType)
| 参数 | 类型 | 描述 |
|---|---|---|
| fileName | String | 字体文件名。 |
| fontType | FontType | 字体类型。 |
返回值
FontDefinition.
另见
- enum FontType
- class FontDefinition
- namespace Aspose.Font.Sources
- assembly Aspose.Font
Open(StreamSource, FontType)
返回针对字体流源和字体类型的 FontDefinition。
public static FontDefinition Open(StreamSource source, FontType fontType)
| 参数 | 类型 | 描述 |
|---|---|---|
| 源 | StreamSource | 字体流来源。 |
| fontType | FontType | 字体类型。 |
返回值
FontDefinition.
另见
- class StreamSource
- enum FontType
- class FontDefinition
- namespace Aspose.Font.Sources
- assembly Aspose.Font