Minor inconsistency in newly generated fontnames, original font doesn't specify 'font weight' for this particular 'namerecord'

This commit is contained in:
Jakob6174
2020-03-09 16:16:30 +00:00
parent 0b29866a3e
commit d6c1df83ed
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
build
node_modules
.idea
.vscode/launch.json
.DS_Store
+1 -1
View File
@@ -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);