Aspose.Font 用于 JavaScript,通过 C++

Aspose.Font for JavaScript via C++ allows developers manipulate them Font files directly in the Web.

Such operations are very time consuming, so we recommend using Web Worker.

Convert functions

函数描述
AsposeFontConvert将字体转换为 TrueType 字体。
AsposeFontConvertToTTF将字体转换为 TTF 格式。
AsposeFontConvertToWOFF将字体转换为 WOFF 格式。
AsposeFontConvertToWOFF2将字体转换为 WOFF2 格式。
AsposeFontConvertToSVG将字体转换为 SVG 格式。

Metadata Font functions

函数描述
AsposeFontGetInfo从字体文件获取信息(元数据)。
AsposeFontSetInfo在字体文件中设置信息(元数据)。

Glyph Font functions

函数描述
AsposeFontGetGlyphCount获取字体的字形计数。
AsposeFontGetMetrics获取字体的度量信息。

Core Functions

函数描述
AsposeFontPrepare将 BLOB 保存到内存文件系统以进行处理。
AsposeFontPrepareBase64将字符串表示的 BLOB 保存到内存文件系统以进行处理。

Miscellaneous

名称描述
AsposeFontAbout获取关于产品的信息。
DownloadFile在 HTML 中创建链接以下载文件。
DownloadFileAuto在 HTML 中创建链接以下载文件,并在 2 秒后开始下载。

枚举

枚举类型描述
FontSavingFormats指定字体类型。
FontStyle指定字体样式。
TtfNameTableNameId指定 NameId。
TtfNameTablePlatformId表示 PlatformId 枚举。
TtfNameTableMacPlatformSpecificId表示 Macintosh 平台特定 ID 枚举。
TtfNameTableMSPlatformSpecificId表示 Microsoft 平台特定 ID 枚举。
TtfNameTableUnicodePlatformSpecificId表示 Unicode 平台特定 ID 枚举。
TtfNameTableMacLanguageIdMacLanguageId 枚举。
TtfNameTableMSLanguageIdMSLanguageId 枚举。