OtfFont

OtfFont(string, string)

从内容创建新的 OtfFont 类,表示为 base64 编码的字符串,并具有指定的名称

public OtfFont(string name, string contentInBase64)
范围 类型 描述
name String OTF 字体的名称。不能为 null、空或空格。
contentInBase64 String 内容为 base64 编码的字符串。不能为 null、空或空格。 如果不是 OTF 内容,将抛出异常。

例外

例外 (健康)状况
ArgumentException
InvalidImageFormatException

也可以看看


OtfFont(string, Stream)

从内容创建新的 OtfFont 类,表示为字节流,并具有指定的名称

public OtfFont(string name, Stream binaryContent)
范围 类型 描述
name String OTF 字体的名称。不能为 null、空或空格。
binaryContent Stream 内容为字节流。阅读从原来的位置开始。不能为空。 应该是可读和可查找的。如果这个实例将被释放,这个流也将被释放。

例外

例外 (健康)状况
ArgumentException
InvalidImageFormatException

也可以看看