Skip to content

Commit 2faa5d8

Browse files
committed
add new test files
1 parent 0c48f12 commit 2faa5d8

File tree

3 files changed

+270
-0
lines changed

3 files changed

+270
-0
lines changed
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
--- tests/testfiles/Roboto-Regular.subset1.ttf 2019-09-05T14:04:24.748302-04:00
2+
+++ tests/testfiles/Roboto-Regular.subset2.ttf 2019-09-05T14:07:27.594299-04:00
3+
@@ -4,16 +4,16 @@
4+
<GlyphOrder>
5+
<!-- The 'id' attribute is only for humans; it is ignored when parsed. -->
6+
<GlyphID id="0" name=".notdef"/>
7+
- <GlyphID id="1" name=".null"/>
8+
- <GlyphID id="2" name="uni0002"/>
9+
- <GlyphID id="3" name="uni0009"/>
10+
+ <GlyphID id="1" name="glyph00001"/>
11+
+ <GlyphID id="2" name="glyph00002"/>
12+
+ <GlyphID id="3" name="glyph00003"/>
13+
<GlyphID id="4" name="space"/>
14+
<GlyphID id="5" name="exclam"/>
15+
<GlyphID id="6" name="quotedbl"/>
16+
<GlyphID id="7" name="numbersign"/>
17+
<GlyphID id="8" name="dollar"/>
18+
<GlyphID id="9" name="percent"/>
19+
- <GlyphID id="10" name="dollar.smcp"/>
20+
+ <GlyphID id="10" name="glyph00010"/>
21+
</GlyphOrder>
22+
23+
<hhea>
24+
@@ -21,10 +21,10 @@
25+
<ascent value="1900"/>
26+
<descent value="-500"/>
27+
<lineGap value="0"/>
28+
- <advanceWidthMax value="4368"/>
29+
- <minLeftSideBearing value="-1825"/>
30+
- <minRightSideBearing value="-1034"/>
31+
- <xMaxExtent value="4187"/>
32+
+ <advanceWidthMax value="1500"/>
33+
+ <minLeftSideBearing value="69"/>
34+
+ <minRightSideBearing value="26"/>
35+
+ <xMaxExtent value="1411"/>
36+
<caretSlopeRise value="1"/>
37+
<caretSlopeRun value="0"/>
38+
<caretOffset value="0"/>
39+
@@ -40,10 +40,10 @@
40+
<!-- Most of this table will be recalculated by the compiler -->
41+
<tableVersion value="0x10000"/>
42+
<numGlyphs value="11"/>
43+
- <maxPoints value="232"/>
44+
- <maxContours value="22"/>
45+
- <maxCompositePoints value="84"/>
46+
- <maxCompositeContours value="7"/>
47+
+ <maxPoints value="60"/>
48+
+ <maxContours value="5"/>
49+
+ <maxCompositePoints value="0"/>
50+
+ <maxCompositeContours value="0"/>
51+
<maxZones value="1"/>
52+
<maxTwilightPoints value="0"/>
53+
<maxStorage value="0"/>
54+
@@ -51,8 +51,8 @@
55+
<maxInstructionDefs value="0"/>
56+
<maxStackElements value="0"/>
57+
<maxSizeOfInstructions value="0"/>
58+
- <maxComponentElements value="6"/>
59+
- <maxComponentDepth value="2"/>
60+
+ <maxComponentElements value="0"/>
61+
+ <maxComponentDepth value="0"/>
62+
</maxp>
63+
64+
<OS_2>
65+
@@ -110,16 +110,16 @@
66+
67+
<hmtx>
68+
<mtx name=".notdef" width="908" lsb="100"/>
69+
- <mtx name=".null" width="0" lsb="0"/>
70+
<mtx name="dollar" width="1151" lsb="110"/>
71+
- <mtx name="dollar.smcp" width="1056" lsb="68"/>
72+
<mtx name="exclam" width="528" lsb="161"/>
73+
+ <mtx name="glyph00001" width="0" lsb="0"/>
74+
+ <mtx name="glyph00002" width="0" lsb="0"/>
75+
+ <mtx name="glyph00003" width="508" lsb="0"/>
76+
+ <mtx name="glyph00010" width="1056" lsb="69"/>
77+
<mtx name="numbersign" width="1261" lsb="119"/>
78+
<mtx name="percent" width="1500" lsb="105"/>
79+
<mtx name="quotedbl" width="656" lsb="137"/>
80+
<mtx name="space" width="508" lsb="0"/>
81+
- <mtx name="uni0002" width="0" lsb="0"/>
82+
- <mtx name="uni0009" width="508" lsb="0"/>
83+
</hmtx>
84+
85+
<cmap>
86+
@@ -196,8 +196,6 @@
87+
</contour>
88+
<instructions/>
89+
</TTGlyph>
90+
-
91+
- <TTGlyph name=".null"/><!-- contains no outline data -->
92+
93+
<TTGlyph name="dollar" xMin="110" yMin="-208" xMax="1042" yMax="1692">
94+
<contour>
95+
@@ -249,7 +247,37 @@
96+
<instructions/>
97+
</TTGlyph>
98+
99+
- <TTGlyph name="dollar.smcp" xMin="68" yMin="-237" xMax="990" yMax="1395">
100+
+ <TTGlyph name="exclam" xMin="161" yMin="-12" xMax="380" yMax="1456">
101+
+ <contour>
102+
+ <pt x="361" y="1456" on="1"/>
103+
+ <pt x="348" y="411" on="1"/>
104+
+ <pt x="181" y="411" on="1"/>
105+
+ <pt x="167" y="1456" on="1"/>
106+
+ </contour>
107+
+ <contour>
108+
+ <pt x="161" y="93" on="1"/>
109+
+ <pt x="161" y="138" on="0"/>
110+
+ <pt x="216" y="200" on="0"/>
111+
+ <pt x="270" y="200" on="1"/>
112+
+ <pt x="323" y="200" on="0"/>
113+
+ <pt x="380" y="138" on="0"/>
114+
+ <pt x="380" y="93" on="1"/>
115+
+ <pt x="380" y="50" on="0"/>
116+
+ <pt x="323" y="-12" on="0"/>
117+
+ <pt x="270" y="-12" on="1"/>
118+
+ <pt x="216" y="-12" on="0"/>
119+
+ <pt x="161" y="50" on="0"/>
120+
+ </contour>
121+
+ <instructions/>
122+
+ </TTGlyph>
123+
+
124+
+ <TTGlyph name="glyph00001"/><!-- contains no outline data -->
125+
+
126+
+ <TTGlyph name="glyph00002"/><!-- contains no outline data -->
127+
+
128+
+ <TTGlyph name="glyph00003"/><!-- contains no outline data -->
129+
+
130+
+ <TTGlyph name="glyph00010" xMin="68" yMin="-237" xMax="990" yMax="1395">
131+
<contour>
132+
<pt x="990" y="300" on="1"/>
133+
<pt x="990" y="168" on="0"/>
134+
@@ -299,30 +327,6 @@
135+
<instructions/>
136+
</TTGlyph>
137+
138+
- <TTGlyph name="exclam" xMin="161" yMin="-12" xMax="380" yMax="1456">
139+
- <contour>
140+
- <pt x="361" y="1456" on="1"/>
141+
- <pt x="348" y="411" on="1"/>
142+
- <pt x="181" y="411" on="1"/>
143+
- <pt x="167" y="1456" on="1"/>
144+
- </contour>
145+
- <contour>
146+
- <pt x="161" y="93" on="1"/>
147+
- <pt x="161" y="138" on="0"/>
148+
- <pt x="216" y="200" on="0"/>
149+
- <pt x="270" y="200" on="1"/>
150+
- <pt x="323" y="200" on="0"/>
151+
- <pt x="380" y="138" on="0"/>
152+
- <pt x="380" y="93" on="1"/>
153+
- <pt x="380" y="50" on="0"/>
154+
- <pt x="323" y="-12" on="0"/>
155+
- <pt x="270" y="-12" on="1"/>
156+
- <pt x="216" y="-12" on="0"/>
157+
- <pt x="161" y="50" on="0"/>
158+
- </contour>
159+
- <instructions/>
160+
- </TTGlyph>
161+
-
162+
<TTGlyph name="numbersign" xMin="119" yMin="0" xMax="1235" yMax="1456">
163+
<contour>
164+
<pt x="686" y="0" on="1"/>
165+
@@ -456,10 +460,6 @@
166+
</TTGlyph>
167+
168+
<TTGlyph name="space"/><!-- contains no outline data -->
169+
-
170+
- <TTGlyph name="uni0002"/><!-- contains no outline data -->
171+
-
172+
- <TTGlyph name="uni0009"/><!-- contains no outline data -->
173+
174+
</glyf>
175+
176+
@@ -709,7 +709,7 @@
177+
<LookupFlag value="0"/>
178+
<!-- SubTableCount=1 -->
179+
<SingleSubst index="0" Format="1">
180+
- <Substitution in="dollar" out="dollar.smcp"/>
181+
+ <Substitution in="dollar" out="glyph00010"/>
182+
</SingleSubst>
183+
</Lookup>
184+
</LookupList>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--- tests/testfiles/Roboto-Regular.subset1.ttf 2019-09-05T14:04:24.748302-04:00
2+
+++ tests/testfiles/Roboto-Regular.subset2.ttf 2019-09-05T14:07:27.594299-04:00
3+
@@ -5,18 +5,18 @@
4+
<!-- Most of this table will be recalculated by the compiler -->
5+
<tableVersion value="1.0"/>
6+
<fontRevision value="2.138"/>
7+
- <checkSumAdjustment value="0x2c16bb4a"/>
8+
+ <checkSumAdjustment value="0x5813354c"/>
9+
<magicNumber value="0x5f0f3cf5"/>
10+
<flags value="00000000 00011001"/>
11+
<unitsPerEm value="2048"/>
12+
<created value="Fri Sep 12 10:29:34 2008"/>
13+
- <modified value="Thu May 25 10:49:57 2017"/>
14+
- <xMin value="-1825"/>
15+
- <yMin value="-555"/>
16+
- <xMax value="4188"/>
17+
- <yMax value="2163"/>
18+
+ <modified value="Thu Sep 5 18:07:11 2019"/>
19+
+ <xMin value="68"/>
20+
+ <yMin value="-237"/>
21+
+ <xMax value="1411"/>
22+
+ <yMax value="1692"/>
23+
<macStyle value="00000000 00000000"/>
24+
- <lowestRecPPEM value="9"/>
25+
+ <lowestRecPPEM value="8"/>
26+
<fontDirectionHint value="2"/>
27+
<indexToLocFormat value="0"/>
28+
<glyphDataFormat value="0"/>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
--- tests/testfiles/Roboto-Regular.subset1.ttf 2019-09-05T14:04:24.748302-04:00
2+
+++ tests/testfiles/Roboto-Regular.subset2.ttf 2019-09-05T14:07:27.594299-04:00
3+
@@ -5,48 +5,21 @@
4+
<!-- Most of this table will be recalculated by the compiler -->
5+
<tableVersion value="1.0"/>
6+
<fontRevision value="2.138"/>
7+
- <checkSumAdjustment value="0x2c16bb4a"/>
8+
+ <checkSumAdjustment value="0x5813354c"/>
9+
<magicNumber value="0x5f0f3cf5"/>
10+
<flags value="00000000 00011001"/>
11+
<unitsPerEm value="2048"/>
12+
<created value="Fri Sep 12 10:29:34 2008"/>
13+
- <modified value="Thu May 25 10:49:57 2017"/>
14+
- <xMin value="-1825"/>
15+
- <yMin value="-555"/>
16+
- <xMax value="4188"/>
17+
- <yMax value="2163"/>
18+
+ <modified value="Thu Sep 5 18:07:11 2019"/>
19+
+ <xMin value="68"/>
20+
+ <yMin value="-237"/>
21+
+ <xMax value="1411"/>
22+
+ <yMax value="1692"/>
23+
<macStyle value="00000000 00000000"/>
24+
- <lowestRecPPEM value="9"/>
25+
+ <lowestRecPPEM value="8"/>
26+
<fontDirectionHint value="2"/>
27+
<indexToLocFormat value="0"/>
28+
<glyphDataFormat value="0"/>
29+
</head>
30+
31+
- <post>
32+
- <formatType value="2.0"/>
33+
- <italicAngle value="0.0"/>
34+
- <underlinePosition value="-150"/>
35+
- <underlineThickness value="100"/>
36+
- <isFixedPitch value="0"/>
37+
- <minMemType42 value="0"/>
38+
- <maxMemType42 value="0"/>
39+
- <minMemType1 value="0"/>
40+
- <maxMemType1 value="0"/>
41+
- <psNames>
42+
- <!-- This file uses unique glyph names based on the information
43+
- found in the 'post' table. Since these names might not be unique,
44+
- we have to invent artificial names in case of clashes. In order to
45+
- be able to retain the original information, we need a name to
46+
- ps name mapping for those cases where they differ. That's what
47+
- you see below.
48+
- -->
49+
- </psNames>
50+
- <extraNames>
51+
- <!-- following are the name that are not taken from the standard Mac glyph order -->
52+
- <psName name="uni0002"/>
53+
- <psName name="uni0009"/>
54+
- <psName name="dollar.smcp"/>
55+
- </extraNames>
56+
- </post>
57+
-
58+
</ttFont>

0 commit comments

Comments
 (0)