Skip to content

Commit

Permalink
📝 Add comment for family name value
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliman committed Mar 9, 2020
1 parent d394007 commit cad9759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ const patchNames = (dom, ligatures, profile) => {
setAttribute(cffFont, 'FamilyName', 'value', familyNamePlat);

// update existing names with new names
// mac family name does not include style
updateName(PlatformId.mac, NameId.familyName, familyNamePlat);
updateName(PlatformId.mac, NameId.fontStyle, names.fontStyle);
updateName(PlatformId.mac, NameId.uniqueId, uniqueId);
Expand All @@ -222,6 +223,7 @@ const patchNames = (dom, ligatures, profile) => {
updateName(PlatformId.mac, NameId.windowsFamilyName, familyNamePlat);
updateName(PlatformId.mac, NameId.fontStyleName, names.fontStyle);

// windows family name includes style
updateName(PlatformId.win, NameId.familyName, familyName);
updateName(PlatformId.win, NameId.fontStyle, names.windowsFontStyle);
updateName(PlatformId.win, NameId.uniqueId, uniqueId);
Expand Down

0 comments on commit cad9759

Please sign in to comment.