Skip to content

Instantly share code, notes, and snippets.

@drott
Created August 22, 2023 17:43
Show Gist options
  • Save drott/220ec0917092572b6258e5267d757b77 to your computer and use it in GitHub Desktop.
Save drott/220ec0917092572b6258e5267d757b77 to your computer and use it in GitHub Desktop.
@jfkthame's CanvasTest patch suggestion
diff -u CanvasTest.ttx CanvasTest_new.ttx
--- CanvasTest.ttx 2023-08-22 13:41:40
+++ CanvasTest_new.ttx 2023-08-22 13:41:43
@@ -22,12 +22,12 @@
<!-- Most of this table will be recalculated by the compiler -->
<tableVersion value="1.0"/>
<fontRevision value="1.0"/>
- <checkSumAdjustment value="0x6f05675"/>
+ <checkSumAdjustment value="0xea27d36b"/>
<magicNumber value="0x5f0f3cf5"/>
<flags value="00000000 00001011"/>
<unitsPerEm value="1024"/>
<created value="Sat Feb 27 16:54:16 2010"/>
- <modified value="Sat Feb 27 16:54:16 2010"/>
+ <modified value="Wed Jul 19 16:37:33 2023"/>
<xMin value="-1003"/>
<yMin value="-805"/>
<xMax value="1580"/>
@@ -56,7 +56,7 @@
<reserved2 value="0"/>
<reserved3 value="0"/>
<metricDataFormat value="0"/>
- <numberOfHMetrics value="4"/>
+ <numberOfHMetrics value="3"/>
</hhea>
<maxp>
@@ -81,7 +81,7 @@
<OS_2>
<!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
will be recalculated by the compiler -->
- <version value="1"/>
+ <version value="4"/>
<xAvgCharWidth value="1024"/>
<usWeightClass value="500"/>
<usWidthClass value="5"/>
@@ -114,7 +114,7 @@
<ulUnicodeRange3 value="00000000 00000000 00000000 00000000"/>
<ulUnicodeRange4 value="00000000 00000000 00000000 00000000"/>
<achVendID value="PfEd"/>
- <fsSelection value="00000000 01000000"/>
+ <fsSelection value="00000000 11000000"/>
<usFirstCharIndex value="9"/>
<usLastCharIndex value="69"/>
<sTypoAscender value="768"/>
@@ -124,6 +124,11 @@
<usWinDescent value="805"/>
<ulCodePageRange1 value="00000000 00000000 00000000 00000001"/>
<ulCodePageRange2 value="00000000 00000000 00000000 00000000"/>
+ <sxHeight value="512"/>
+ <sCapHeight value="768"/>
+ <usDefaultChar value="32"/>
+ <usBreakChar value="32"/>
+ <usMaxContext value="0"/>
</OS_2>
<hmtx>
@@ -475,7 +480,7 @@
CanvasTest
</namerecord>
<namerecord nameID="5" platformID="1" platEncID="0" langID="0x0" unicode="True">
- Version 001.000
+ Version 001.000
</namerecord>
<namerecord nameID="6" platformID="1" platEncID="0" langID="0x0" unicode="True">
CanvasTest
@@ -498,7 +503,7 @@
CanvasTest
</namerecord>
<namerecord nameID="5" platformID="3" platEncID="1" langID="0x409">
- Version 001.000
+ Version 001.000
</namerecord>
<namerecord nameID="6" platformID="3" platEncID="1" langID="0x409">
CanvasTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment