Font converter | API Solution for C++

Effortless Font Conversion with Aspose.Font for Node.js

Need to switch your fonts between popular formats? Aspose.Font for Node.js has you covered! This powerful library allows you to seamlessly convert fonts between various supported formats, giving you ultimate flexibility in your projects.

How to convert the font into the desired format?

  1. Use the AsposeFontConvert function which acts as your conversion engine. Simply call it with the necessary parameters.
  2. Track the Results: The function returns a JSON object containing the results of the conversion.

Below is the sample which converts font from TTF to WOFF format.

 1    const AsposeFont = require('asposefontnodejs');
 2
 3    const font_file = "./fonts/Lora-Regular.ttf";
 4
 5    console.log('Aspose.Font for Node.js via C++ example');
 6
 7    AsposeFont().then(AsposeFontModule => {
 8        //call AsposeFontConvert to convert font
 9        const json = AsposeFontModule.AsposeFontConvert(font_file,AsposeFontModule.FontType.TTF,AsposeFontModule.FontSavingFormats.WOFF);
10        console.log("AsposeFontConvert : %O",  json.errorCode == 0 ? font_file + ' => ' + json.fileNameResult : json.errorText);
11    });

*Replace path/to/your/font.ttf with the actual path to your font file.

With Aspose.Font for Node.js, you can effortlessly switch between font formats and ensure your projects always have the perfect look and feel!

How to get the solution?

If you want to get the library, go to Aspose.Font for Node.js product page. There you will find more opportunities that the solution gives you. You can download a free trial from or buy the product there.

If you have any issues or questions, feel free to post them at the Aspose.Font.Product Family section of the Free Support Forum and within a few hours our support team will clear everything up for you.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.