From cad9759288efd25ae3294af6980b8c60fd03cf4a Mon Sep 17 00:00:00 2001 From: kiliman Date: Mon, 9 Mar 2020 17:10:52 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20comment=20for=20family=20n?= =?UTF-8?q?ame=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index a3f0edb..fd3e051 100644 --- a/index.js +++ b/index.js @@ -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); @@ -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);