Aufzählungen
Aufzählungen
| Aufzählung | Beschreibung |
|---|---|
| FontSavingFormats | Gibt den Schriftarttyp an. |
| FontType | Gibt den Schriftarttyp an. |
| TtfNameTableNameId | Gibt die NameId an. |
| TtfNameTablePlatformId | Stellt die PlatformId-Aufzählung dar. |
| TtfNameTableMSPlatformSpecificId | Stellt die Aufzählung MSPlatformSpecificId dar. |
| TtfNameTableMacPlatformSpecificId | Stellt die Aufzählung MacPlatformSpecificId dar. |
| TtfNameTableUnicodePlatformSpecificId | Stellt die Aufzählung UnicodePlatformSpecificId dar. |
| TtfNameTableMacLanguageId | Macintosh-Plattform-Sprach‑ID‑Aufzählung. |
| TtfNameTableMSLanguageId | Microsoft-Plattform-Sprach‑ID‑Aufzählung. |
Example of using enumarations
const AsposeFont = require('asposefontnodejs');
const font_file = "./fonts/Lora-Regular.ttf";
console.log("Aspose.Font for Node.js via C++ examples.");
AsposeFont().then(AsposeFontModule => {
//define parameters for AsposeFontSetInfo
const nameId = AsposeFontModule.TtfNameTableNameId.Description;
const platformId = AsposeFontModule.TtfNameTablePlatformId.Microsoft;
const platformSpecificId = AsposeFontModule.TtfNameTableMSPlatformSpecificId.Unicode_BMP_UCS2.value;
const langID = Module.TtfNameTableMSLanguageId.English_United_States.value;
const text = "Updated description";
const json = AsposeFontSetInfo(font_file, nameId, platformId, platformSpecificId, langID, text);
console.log("AsposeFontSetInfo => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);