Browse our Products
Aspose.Font for Node.js via C++ 26.9 Release Notes
Improvements and Changes
Added new function AsposeFontGetBasicProperties
Public API and Backwards Incompatible Changes
Added APIs
```html
const AsposeFont = require('asposefontnodejs');
const font_file = "./fonts/Lora-Regular.ttf";
console.log("Aspose.Font for Node.js via C++ examples.");
AsposeFont().then(AsposeFontModule => {
//AsposeFontGetBasicProperties - Returns basic font properties: family name, style, and font type.
const json = AsposeFontModule.AsposeFontGetBasicProperties(font_file);
console.log("AsposeFontGetBasicProperties => %O", json.errorCode == 0 ? "Family name : " + json.familyName + "; Style: " + json.style + "; Font type: " + json.fontType : json.errorText);
},
reason => {console.log(`The unknown error has occurred: ${reason}`);}
);
```