From fc8827e17c28998473f7fd12ea39da7c1980734d Mon Sep 17 00:00:00 2001 From: Kiliman Date: Fri, 19 Apr 2019 18:44:31 -0400 Subject: [PATCH] Remove elements from head that change but we don't care about --- extract.js | 6 ++++++ ligature/OperatorMonoLig-Light/config.xml | 6 ------ ligature/OperatorMonoLig-LightItalic/config.xml | 6 ------ ligature/OperatorMonoSSmLig-Book/config.xml | 6 ------ ligature/OperatorMonoSSmLig-BookItalic/config.xml | 6 ------ 5 files changed, 6 insertions(+), 24 deletions(-) diff --git a/extract.js b/extract.js index 3c76941..0aa6d90 100644 --- a/extract.js +++ b/extract.js @@ -78,6 +78,12 @@ const extractConfig = dom => { const head = xpath.select('/ttFont/head', dom, true); const hhea = xpath.select('/ttFont/hhea', dom, true); + // remove elements that change after each save + // but we don't care about + head.removeChild(xpath.select('checkSumAdjustment', head, true)); + head.removeChild(xpath.select('created', head, true)); + head.removeChild(xpath.select('modified', head, true)); + const bbox = extractFromPath('/ttFont/CFF/CFFFont/FontBBox', dom); const widthX = extractFromPath( '/ttFont/CFF/CFFFont/Private/nominalWidthX', diff --git a/ligature/OperatorMonoLig-Light/config.xml b/ligature/OperatorMonoLig-Light/config.xml index 6a44b16..fd0a4e9 100644 --- a/ligature/OperatorMonoLig-Light/config.xml +++ b/ligature/OperatorMonoLig-Light/config.xml @@ -11,8 +11,6 @@ - - @@ -23,11 +21,7 @@ - - - - diff --git a/ligature/OperatorMonoLig-LightItalic/config.xml b/ligature/OperatorMonoLig-LightItalic/config.xml index 869b5bc..3ff8b7b 100644 --- a/ligature/OperatorMonoLig-LightItalic/config.xml +++ b/ligature/OperatorMonoLig-LightItalic/config.xml @@ -11,8 +11,6 @@ - - @@ -23,11 +21,7 @@ - - - - diff --git a/ligature/OperatorMonoSSmLig-Book/config.xml b/ligature/OperatorMonoSSmLig-Book/config.xml index e57754c..1b1ba88 100644 --- a/ligature/OperatorMonoSSmLig-Book/config.xml +++ b/ligature/OperatorMonoSSmLig-Book/config.xml @@ -11,8 +11,6 @@ - - @@ -23,11 +21,7 @@ - - - - diff --git a/ligature/OperatorMonoSSmLig-BookItalic/config.xml b/ligature/OperatorMonoSSmLig-BookItalic/config.xml index 4f422d6..2499fb1 100644 --- a/ligature/OperatorMonoSSmLig-BookItalic/config.xml +++ b/ligature/OperatorMonoSSmLig-BookItalic/config.xml @@ -11,8 +11,6 @@ - - @@ -23,11 +21,7 @@ - - - -