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);