直接在 Node.js 应用中使用字体

9月 23, 2025
Aspose.Font for Node.js via C++ 使开发人员能够本机控制字体加载、转换和检查,无需依赖外部工具。

继续用英语阅读:

Aspose.Font for Node.js via C++ is a native Node.js library that enables developers to load, manage, and process a wide range of font file formats directly within JavaScript applications. Built on C++ and exposed via WebAssembly, the library supports formats such as TrueType (TTF), OpenType (OTF), Web Open Font Format (WOFF/WOFF2), CFF, EOT, and Type 1 fonts. It provides functionality for reading font metadata, extracting glyphs, rendering individual characters, and converting fonts between formats, all without relying on any external software or font rendering engines.

The library offers clear advantages for applications that require programmatic font manipulation, inspection, or transformation. Developers working on document generation, digital publishing, or font auditing tools can use Aspose.Font to embed, subset, or convert fonts in workflows involving PDF or web content. Its ability to extract font details and render glyphs programmatically also makes it suitable for design automation, compliance checking, or branding systems where consistent typography handling is essential. The self-contained nature of the library ensures cross-platform compatibility and seamless integration into Node.js applications running on server or desktop environments.

Aspose.Font for Node.js via C++ is offered as Developer Small Business, Developer OEM, Developer SDK, Site Small Business, Site OEM and Site SDK licenses catering to a range of business needs. Licenses are perpetual, and include 1 year of support and maintenance. Subscription renewals are also available. See our Aspose.Font for Node.js via C++ licensing page for full details.

Aspose.Font for Node.js via C++ is available individually or as part of the following products: