From d6c1df83edd568ed1d5943c3a3e9a7f475cfe152 Mon Sep 17 00:00:00 2001 From: Jakob6174 Date: Mon, 9 Mar 2020 16:16:30 +0000 Subject: [PATCH] Minor inconsistency in newly generated fontnames, original font doesn't specify 'font weight' for this particular 'namerecord' --- .gitignore | 1 + index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 29af779..eca52a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build node_modules +.idea .vscode/launch.json .DS_Store diff --git a/index.js b/index.js index aa8abc6..b95dba6 100644 --- a/index.js +++ b/index.js @@ -216,7 +216,7 @@ const patchNames = (dom, ligatures, profile) => { setAttribute(cffFont, 'FamilyName', 'value', familyNamePlat); // update existing names with new names - updateName(PlatformId.mac, NameId.familyName, familyName); + updateName(PlatformId.mac, NameId.familyName, familyNamePlat); updateName(PlatformId.mac, NameId.fontStyle, names.fontStyle); updateName(PlatformId.mac, NameId.uniqueId, uniqueId); updateName(PlatformId.mac, NameId.fullName, fullName);