mirror of
https://github.com/kiliman/operator-mono-lig.git
synced 2026-08-12 02:10:52 +02:00
Remove elements from head that change but we don't care about
This commit is contained in:
@@ -78,6 +78,12 @@ const extractConfig = dom => {
|
|||||||
const head = xpath.select('/ttFont/head', dom, true);
|
const head = xpath.select('/ttFont/head', dom, true);
|
||||||
const hhea = xpath.select('/ttFont/hhea', 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 bbox = extractFromPath('/ttFont/CFF/CFFFont/FontBBox', dom);
|
||||||
const widthX = extractFromPath(
|
const widthX = extractFromPath(
|
||||||
'/ttFont/CFF/CFFFont/Private/nominalWidthX',
|
'/ttFont/CFF/CFFFont/Private/nominalWidthX',
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
<fontRevision value="1.002"/>
|
<fontRevision value="1.002"/>
|
||||||
|
|
||||||
|
|
||||||
<checkSumAdjustment value="0xb9a318ef"/>
|
|
||||||
|
|
||||||
|
|
||||||
<magicNumber value="0x5f0f3cf5"/>
|
<magicNumber value="0x5f0f3cf5"/>
|
||||||
|
|
||||||
@@ -23,11 +21,7 @@
|
|||||||
<unitsPerEm value="1000"/>
|
<unitsPerEm value="1000"/>
|
||||||
|
|
||||||
|
|
||||||
<created value="Fri Apr 27 15:41:11 2018"/>
|
|
||||||
|
|
||||||
|
|
||||||
<modified value="Fri Apr 27 15:41:11 2018"/>
|
|
||||||
|
|
||||||
|
|
||||||
<xMin value="-1018"/>
|
<xMin value="-1018"/>
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
<fontRevision value="1.002"/>
|
<fontRevision value="1.002"/>
|
||||||
|
|
||||||
|
|
||||||
<checkSumAdjustment value="0x7d28ec7a"/>
|
|
||||||
|
|
||||||
|
|
||||||
<magicNumber value="0x5f0f3cf5"/>
|
<magicNumber value="0x5f0f3cf5"/>
|
||||||
|
|
||||||
@@ -23,11 +21,7 @@
|
|||||||
<unitsPerEm value="1000"/>
|
<unitsPerEm value="1000"/>
|
||||||
|
|
||||||
|
|
||||||
<created value="Mon Apr 30 12:56:41 2018"/>
|
|
||||||
|
|
||||||
|
|
||||||
<modified value="Mon Apr 30 12:56:41 2018"/>
|
|
||||||
|
|
||||||
|
|
||||||
<xMin value="-487"/>
|
<xMin value="-487"/>
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
<fontRevision value="1.002"/>
|
<fontRevision value="1.002"/>
|
||||||
|
|
||||||
|
|
||||||
<checkSumAdjustment value="0xfa6956ba"/>
|
|
||||||
|
|
||||||
|
|
||||||
<magicNumber value="0x5f0f3cf5"/>
|
<magicNumber value="0x5f0f3cf5"/>
|
||||||
|
|
||||||
@@ -23,11 +21,7 @@
|
|||||||
<unitsPerEm value="1000"/>
|
<unitsPerEm value="1000"/>
|
||||||
|
|
||||||
|
|
||||||
<created value="Wed Apr 17 14:51:05 2019"/>
|
|
||||||
|
|
||||||
|
|
||||||
<modified value="Wed Apr 17 14:51:05 2019"/>
|
|
||||||
|
|
||||||
|
|
||||||
<xMin value="-1773"/>
|
<xMin value="-1773"/>
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
<fontRevision value="1.002"/>
|
<fontRevision value="1.002"/>
|
||||||
|
|
||||||
|
|
||||||
<checkSumAdjustment value="0x713ccd21"/>
|
|
||||||
|
|
||||||
|
|
||||||
<magicNumber value="0x5f0f3cf5"/>
|
<magicNumber value="0x5f0f3cf5"/>
|
||||||
|
|
||||||
@@ -23,11 +21,7 @@
|
|||||||
<unitsPerEm value="1000"/>
|
<unitsPerEm value="1000"/>
|
||||||
|
|
||||||
|
|
||||||
<created value="Wed Apr 17 14:51:42 2019"/>
|
|
||||||
|
|
||||||
|
|
||||||
<modified value="Wed Apr 17 14:51:42 2019"/>
|
|
||||||
|
|
||||||
|
|
||||||
<xMin value="-1771"/>
|
<xMin value="-1771"/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user