Remove elements from head that change but we don't care about

This commit is contained in:
Kiliman
2019-04-19 18:44:31 -04:00
committed by unknown
parent 150ed13829
commit fc8827e17c
5 changed files with 6 additions and 24 deletions
+6
View File
@@ -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',
@@ -11,8 +11,6 @@
<fontRevision value="1.002"/>
<checkSumAdjustment value="0xb9a318ef"/>
<magicNumber value="0x5f0f3cf5"/>
@@ -23,10 +21,6 @@
<unitsPerEm value="1000"/>
<created value="Fri Apr 27 15:41:11 2018"/>
<modified value="Fri Apr 27 15:41:11 2018"/>
<xMin value="-1018"/>
@@ -11,8 +11,6 @@
<fontRevision value="1.002"/>
<checkSumAdjustment value="0x7d28ec7a"/>
<magicNumber value="0x5f0f3cf5"/>
@@ -23,10 +21,6 @@
<unitsPerEm value="1000"/>
<created value="Mon Apr 30 12:56:41 2018"/>
<modified value="Mon Apr 30 12:56:41 2018"/>
<xMin value="-487"/>
@@ -11,8 +11,6 @@
<fontRevision value="1.002"/>
<checkSumAdjustment value="0xfa6956ba"/>
<magicNumber value="0x5f0f3cf5"/>
@@ -23,10 +21,6 @@
<unitsPerEm value="1000"/>
<created value="Wed Apr 17 14:51:05 2019"/>
<modified value="Wed Apr 17 14:51:05 2019"/>
<xMin value="-1773"/>
@@ -11,8 +11,6 @@
<fontRevision value="1.002"/>
<checkSumAdjustment value="0x713ccd21"/>
<magicNumber value="0x5f0f3cf5"/>
@@ -23,10 +21,6 @@
<unitsPerEm value="1000"/>
<created value="Wed Apr 17 14:51:42 2019"/>
<modified value="Wed Apr 17 14:51:42 2019"/>
<xMin value="-1771"/>