Browse our Products

Aspose.Font for Node.js via C++ 25.6 Release Notes

Aspose.Font for Node.js via C++ is based on Aspose.Font for C++ 25.6 library.

Added support for converting fonts from Compact Font Format (CFF) to OpenType font format (OTF).

You can use method AsposeFontConvert to converting.

Example for ECMAScript (ES6 or mjs format):

import AsposeFont from 'asposefontnodejs';

const font_file_cff = "./fonts/12380_C0_0.cff";

console.log('Aspose.Font for Node.js via C++ example');

const AsposeFontModule = await AsposeFont();

//AsposeFontConvert - convert CFF to OTF
const json = AsposeFontModule.AsposeFontConvert(font_file_cff,AsposeFontModule.FontType.CFF,AsposeFontModule.FontSavingFormats.OTF);
console.log("AsposeFontConvertCFFToOTF : %O",  json.errorCode == 0 ? font_file_cff + ' => ' + json.fileNameResult : json.errorText);

Public API and Backwards Incompatible Changes

Added APIs

  • Enumeration member Aspose.Font.FontSavingFormats.OTF