xref: /aosp_15_r20/external/fonttools/Tests/subset/data/CmapSubsetTest.ttx (revision e1fe3e4ad2793916b15cccdc4a7da52a7e1dd0e9)
1*e1fe3e4aSElliott Hughes<?xml version="1.0" encoding="UTF-8"?>
2*e1fe3e4aSElliott Hughes<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="4.18">
3*e1fe3e4aSElliott Hughes
4*e1fe3e4aSElliott Hughes  <GlyphOrder>
5*e1fe3e4aSElliott Hughes    <!-- The 'id' attribute is only for humans; it is ignored when parsed. -->
6*e1fe3e4aSElliott Hughes    <GlyphID id="0" name=".notdef"/>
7*e1fe3e4aSElliott Hughes    <GlyphID id="1" name="a"/>
8*e1fe3e4aSElliott Hughes    <GlyphID id="2" name="basket"/>
9*e1fe3e4aSElliott Hughes  </GlyphOrder>
10*e1fe3e4aSElliott Hughes
11*e1fe3e4aSElliott Hughes  <head>
12*e1fe3e4aSElliott Hughes    <!-- Most of this table will be recalculated by the compiler -->
13*e1fe3e4aSElliott Hughes    <tableVersion value="1.0"/>
14*e1fe3e4aSElliott Hughes    <fontRevision value="0.0"/>
15*e1fe3e4aSElliott Hughes    <checkSumAdjustment value="0xc643119c"/>
16*e1fe3e4aSElliott Hughes    <magicNumber value="0x5f0f3cf5"/>
17*e1fe3e4aSElliott Hughes    <flags value="00000000 00000011"/>
18*e1fe3e4aSElliott Hughes    <unitsPerEm value="1000"/>
19*e1fe3e4aSElliott Hughes    <created value="Tue Jan 12 16:39:39 2021"/>
20*e1fe3e4aSElliott Hughes    <modified value="Tue Jan 12 16:39:39 2021"/>
21*e1fe3e4aSElliott Hughes    <xMin value="50"/>
22*e1fe3e4aSElliott Hughes    <yMin value="-200"/>
23*e1fe3e4aSElliott Hughes    <xMax value="450"/>
24*e1fe3e4aSElliott Hughes    <yMax value="800"/>
25*e1fe3e4aSElliott Hughes    <macStyle value="00000000 00000000"/>
26*e1fe3e4aSElliott Hughes    <lowestRecPPEM value="6"/>
27*e1fe3e4aSElliott Hughes    <fontDirectionHint value="2"/>
28*e1fe3e4aSElliott Hughes    <indexToLocFormat value="0"/>
29*e1fe3e4aSElliott Hughes    <glyphDataFormat value="0"/>
30*e1fe3e4aSElliott Hughes  </head>
31*e1fe3e4aSElliott Hughes
32*e1fe3e4aSElliott Hughes  <hhea>
33*e1fe3e4aSElliott Hughes    <tableVersion value="0x00010000"/>
34*e1fe3e4aSElliott Hughes    <ascent value="1000"/>
35*e1fe3e4aSElliott Hughes    <descent value="-200"/>
36*e1fe3e4aSElliott Hughes    <lineGap value="0"/>
37*e1fe3e4aSElliott Hughes    <advanceWidthMax value="942"/>
38*e1fe3e4aSElliott Hughes    <minLeftSideBearing value="50"/>
39*e1fe3e4aSElliott Hughes    <minRightSideBearing value="50"/>
40*e1fe3e4aSElliott Hughes    <xMaxExtent value="450"/>
41*e1fe3e4aSElliott Hughes    <caretSlopeRise value="1"/>
42*e1fe3e4aSElliott Hughes    <caretSlopeRun value="0"/>
43*e1fe3e4aSElliott Hughes    <caretOffset value="0"/>
44*e1fe3e4aSElliott Hughes    <reserved0 value="0"/>
45*e1fe3e4aSElliott Hughes    <reserved1 value="0"/>
46*e1fe3e4aSElliott Hughes    <reserved2 value="0"/>
47*e1fe3e4aSElliott Hughes    <reserved3 value="0"/>
48*e1fe3e4aSElliott Hughes    <metricDataFormat value="0"/>
49*e1fe3e4aSElliott Hughes    <numberOfHMetrics value="3"/>
50*e1fe3e4aSElliott Hughes  </hhea>
51*e1fe3e4aSElliott Hughes
52*e1fe3e4aSElliott Hughes  <maxp>
53*e1fe3e4aSElliott Hughes    <!-- Most of this table will be recalculated by the compiler -->
54*e1fe3e4aSElliott Hughes    <tableVersion value="0x10000"/>
55*e1fe3e4aSElliott Hughes    <numGlyphs value="3"/>
56*e1fe3e4aSElliott Hughes    <maxPoints value="8"/>
57*e1fe3e4aSElliott Hughes    <maxContours value="2"/>
58*e1fe3e4aSElliott Hughes    <maxCompositePoints value="0"/>
59*e1fe3e4aSElliott Hughes    <maxCompositeContours value="0"/>
60*e1fe3e4aSElliott Hughes    <maxZones value="1"/>
61*e1fe3e4aSElliott Hughes    <maxTwilightPoints value="0"/>
62*e1fe3e4aSElliott Hughes    <maxStorage value="0"/>
63*e1fe3e4aSElliott Hughes    <maxFunctionDefs value="0"/>
64*e1fe3e4aSElliott Hughes    <maxInstructionDefs value="0"/>
65*e1fe3e4aSElliott Hughes    <maxStackElements value="0"/>
66*e1fe3e4aSElliott Hughes    <maxSizeOfInstructions value="0"/>
67*e1fe3e4aSElliott Hughes    <maxComponentElements value="0"/>
68*e1fe3e4aSElliott Hughes    <maxComponentDepth value="0"/>
69*e1fe3e4aSElliott Hughes  </maxp>
70*e1fe3e4aSElliott Hughes
71*e1fe3e4aSElliott Hughes  <OS_2>
72*e1fe3e4aSElliott Hughes    <!-- The fields 'usFirstCharIndex' and 'usLastCharIndex'
73*e1fe3e4aSElliott Hughes         will be recalculated by the compiler -->
74*e1fe3e4aSElliott Hughes    <version value="4"/>
75*e1fe3e4aSElliott Hughes    <xAvgCharWidth value="660"/>
76*e1fe3e4aSElliott Hughes    <usWeightClass value="400"/>
77*e1fe3e4aSElliott Hughes    <usWidthClass value="5"/>
78*e1fe3e4aSElliott Hughes    <fsType value="00000000 00000100"/>
79*e1fe3e4aSElliott Hughes    <ySubscriptXSize value="650"/>
80*e1fe3e4aSElliott Hughes    <ySubscriptYSize value="600"/>
81*e1fe3e4aSElliott Hughes    <ySubscriptXOffset value="0"/>
82*e1fe3e4aSElliott Hughes    <ySubscriptYOffset value="75"/>
83*e1fe3e4aSElliott Hughes    <ySuperscriptXSize value="650"/>
84*e1fe3e4aSElliott Hughes    <ySuperscriptYSize value="600"/>
85*e1fe3e4aSElliott Hughes    <ySuperscriptXOffset value="0"/>
86*e1fe3e4aSElliott Hughes    <ySuperscriptYOffset value="350"/>
87*e1fe3e4aSElliott Hughes    <yStrikeoutSize value="50"/>
88*e1fe3e4aSElliott Hughes    <yStrikeoutPosition value="300"/>
89*e1fe3e4aSElliott Hughes    <sFamilyClass value="0"/>
90*e1fe3e4aSElliott Hughes    <panose>
91*e1fe3e4aSElliott Hughes      <bFamilyType value="0"/>
92*e1fe3e4aSElliott Hughes      <bSerifStyle value="0"/>
93*e1fe3e4aSElliott Hughes      <bWeight value="0"/>
94*e1fe3e4aSElliott Hughes      <bProportion value="0"/>
95*e1fe3e4aSElliott Hughes      <bContrast value="0"/>
96*e1fe3e4aSElliott Hughes      <bStrokeVariation value="0"/>
97*e1fe3e4aSElliott Hughes      <bArmStyle value="0"/>
98*e1fe3e4aSElliott Hughes      <bLetterForm value="0"/>
99*e1fe3e4aSElliott Hughes      <bMidline value="0"/>
100*e1fe3e4aSElliott Hughes      <bXHeight value="0"/>
101*e1fe3e4aSElliott Hughes    </panose>
102*e1fe3e4aSElliott Hughes    <ulUnicodeRange1 value="00000000 00000000 00000000 00000001"/>
103*e1fe3e4aSElliott Hughes    <ulUnicodeRange2 value="00000010 00000000 00000000 00000000"/>
104*e1fe3e4aSElliott Hughes    <ulUnicodeRange3 value="00000000 00000000 00000000 00000000"/>
105*e1fe3e4aSElliott Hughes    <ulUnicodeRange4 value="00000000 00000000 00000000 00000000"/>
106*e1fe3e4aSElliott Hughes    <achVendID value="NONE"/>
107*e1fe3e4aSElliott Hughes    <fsSelection value="00000000 01000000"/>
108*e1fe3e4aSElliott Hughes    <usFirstCharIndex value="97"/>
109*e1fe3e4aSElliott Hughes    <usLastCharIndex value="65535"/>
110*e1fe3e4aSElliott Hughes    <sTypoAscender value="800"/>
111*e1fe3e4aSElliott Hughes    <sTypoDescender value="-200"/>
112*e1fe3e4aSElliott Hughes    <sTypoLineGap value="200"/>
113*e1fe3e4aSElliott Hughes    <usWinAscent value="1000"/>
114*e1fe3e4aSElliott Hughes    <usWinDescent value="200"/>
115*e1fe3e4aSElliott Hughes    <ulCodePageRange1 value="00000000 00000000 00000000 00000001"/>
116*e1fe3e4aSElliott Hughes    <ulCodePageRange2 value="00000000 00000000 00000000 00000000"/>
117*e1fe3e4aSElliott Hughes    <sxHeight value="500"/>
118*e1fe3e4aSElliott Hughes    <sCapHeight value="700"/>
119*e1fe3e4aSElliott Hughes    <usDefaultChar value="0"/>
120*e1fe3e4aSElliott Hughes    <usBreakChar value="32"/>
121*e1fe3e4aSElliott Hughes    <usMaxContext value="0"/>
122*e1fe3e4aSElliott Hughes  </OS_2>
123*e1fe3e4aSElliott Hughes
124*e1fe3e4aSElliott Hughes  <hmtx>
125*e1fe3e4aSElliott Hughes    <mtx name=".notdef" width="500" lsb="50"/>
126*e1fe3e4aSElliott Hughes    <mtx name="a" width="538" lsb="0"/>
127*e1fe3e4aSElliott Hughes    <mtx name="basket" width="942" lsb="0"/>
128*e1fe3e4aSElliott Hughes  </hmtx>
129*e1fe3e4aSElliott Hughes
130*e1fe3e4aSElliott Hughes  <cmap>
131*e1fe3e4aSElliott Hughes    <tableVersion version="0"/>
132*e1fe3e4aSElliott Hughes    <cmap_format_4 platformID="0" platEncID="3" language="0">
133*e1fe3e4aSElliott Hughes      <map code="0x61" name="a"/><!-- LATIN SMALL LETTER A -->
134*e1fe3e4aSElliott Hughes    </cmap_format_4>
135*e1fe3e4aSElliott Hughes    <cmap_format_12 platformID="0" platEncID="4" format="12" reserved="0" length="40" language="0" nGroups="2">
136*e1fe3e4aSElliott Hughes      <map code="0x61" name="a"/><!-- LATIN SMALL LETTER A -->
137*e1fe3e4aSElliott Hughes      <map code="0x1f9fa" name="basket"/><!-- BASKET -->
138*e1fe3e4aSElliott Hughes    </cmap_format_12>
139*e1fe3e4aSElliott Hughes    <cmap_format_4 platformID="3" platEncID="1" language="0">
140*e1fe3e4aSElliott Hughes      <map code="0x61" name="a"/><!-- LATIN SMALL LETTER A -->
141*e1fe3e4aSElliott Hughes    </cmap_format_4>
142*e1fe3e4aSElliott Hughes    <cmap_format_12 platformID="3" platEncID="10" format="12" reserved="0" length="40" language="0" nGroups="2">
143*e1fe3e4aSElliott Hughes      <map code="0x61" name="a"/><!-- LATIN SMALL LETTER A -->
144*e1fe3e4aSElliott Hughes      <map code="0x1f9fa" name="basket"/><!-- BASKET -->
145*e1fe3e4aSElliott Hughes    </cmap_format_12>
146*e1fe3e4aSElliott Hughes  </cmap>
147*e1fe3e4aSElliott Hughes
148*e1fe3e4aSElliott Hughes  <loca>
149*e1fe3e4aSElliott Hughes    <!-- The 'loca' table will be calculated by the compiler -->
150*e1fe3e4aSElliott Hughes  </loca>
151*e1fe3e4aSElliott Hughes
152*e1fe3e4aSElliott Hughes  <glyf>
153*e1fe3e4aSElliott Hughes
154*e1fe3e4aSElliott Hughes    <!-- The xMin, yMin, xMax and yMax values
155*e1fe3e4aSElliott Hughes         will be recalculated by the compiler. -->
156*e1fe3e4aSElliott Hughes
157*e1fe3e4aSElliott Hughes    <TTGlyph name=".notdef" xMin="50" yMin="-200" xMax="450" yMax="800">
158*e1fe3e4aSElliott Hughes      <contour>
159*e1fe3e4aSElliott Hughes        <pt x="50" y="-200" on="1"/>
160*e1fe3e4aSElliott Hughes        <pt x="50" y="800" on="1"/>
161*e1fe3e4aSElliott Hughes        <pt x="450" y="800" on="1"/>
162*e1fe3e4aSElliott Hughes        <pt x="450" y="-200" on="1"/>
163*e1fe3e4aSElliott Hughes      </contour>
164*e1fe3e4aSElliott Hughes      <contour>
165*e1fe3e4aSElliott Hughes        <pt x="100" y="-150" on="1"/>
166*e1fe3e4aSElliott Hughes        <pt x="400" y="-150" on="1"/>
167*e1fe3e4aSElliott Hughes        <pt x="400" y="750" on="1"/>
168*e1fe3e4aSElliott Hughes        <pt x="100" y="750" on="1"/>
169*e1fe3e4aSElliott Hughes      </contour>
170*e1fe3e4aSElliott Hughes      <instructions/>
171*e1fe3e4aSElliott Hughes    </TTGlyph>
172*e1fe3e4aSElliott Hughes
173*e1fe3e4aSElliott Hughes    <TTGlyph name="a"/><!-- contains no outline data -->
174*e1fe3e4aSElliott Hughes
175*e1fe3e4aSElliott Hughes    <TTGlyph name="basket"/><!-- contains no outline data -->
176*e1fe3e4aSElliott Hughes
177*e1fe3e4aSElliott Hughes  </glyf>
178*e1fe3e4aSElliott Hughes
179*e1fe3e4aSElliott Hughes  <name>
180*e1fe3e4aSElliott Hughes    <namerecord nameID="1" platformID="3" platEncID="1" langID="0x409">
181*e1fe3e4aSElliott Hughes      New Font
182*e1fe3e4aSElliott Hughes    </namerecord>
183*e1fe3e4aSElliott Hughes    <namerecord nameID="2" platformID="3" platEncID="1" langID="0x409">
184*e1fe3e4aSElliott Hughes      Regular
185*e1fe3e4aSElliott Hughes    </namerecord>
186*e1fe3e4aSElliott Hughes    <namerecord nameID="3" platformID="3" platEncID="1" langID="0x409">
187*e1fe3e4aSElliott Hughes      0.000;NONE;NewFont-Regular
188*e1fe3e4aSElliott Hughes    </namerecord>
189*e1fe3e4aSElliott Hughes    <namerecord nameID="4" platformID="3" platEncID="1" langID="0x409">
190*e1fe3e4aSElliott Hughes      New Font Regular
191*e1fe3e4aSElliott Hughes    </namerecord>
192*e1fe3e4aSElliott Hughes    <namerecord nameID="5" platformID="3" platEncID="1" langID="0x409">
193*e1fe3e4aSElliott Hughes      Version 0.000
194*e1fe3e4aSElliott Hughes    </namerecord>
195*e1fe3e4aSElliott Hughes    <namerecord nameID="6" platformID="3" platEncID="1" langID="0x409">
196*e1fe3e4aSElliott Hughes      NewFont-Regular
197*e1fe3e4aSElliott Hughes    </namerecord>
198*e1fe3e4aSElliott Hughes  </name>
199*e1fe3e4aSElliott Hughes
200*e1fe3e4aSElliott Hughes  <post>
201*e1fe3e4aSElliott Hughes    <formatType value="2.0"/>
202*e1fe3e4aSElliott Hughes    <italicAngle value="0.0"/>
203*e1fe3e4aSElliott Hughes    <underlinePosition value="-75"/>
204*e1fe3e4aSElliott Hughes    <underlineThickness value="50"/>
205*e1fe3e4aSElliott Hughes    <isFixedPitch value="0"/>
206*e1fe3e4aSElliott Hughes    <minMemType42 value="0"/>
207*e1fe3e4aSElliott Hughes    <maxMemType42 value="0"/>
208*e1fe3e4aSElliott Hughes    <minMemType1 value="0"/>
209*e1fe3e4aSElliott Hughes    <maxMemType1 value="0"/>
210*e1fe3e4aSElliott Hughes    <psNames>
211*e1fe3e4aSElliott Hughes      <!-- This file uses unique glyph names based on the information
212*e1fe3e4aSElliott Hughes           found in the 'post' table. Since these names might not be unique,
213*e1fe3e4aSElliott Hughes           we have to invent artificial names in case of clashes. In order to
214*e1fe3e4aSElliott Hughes           be able to retain the original information, we need a name to
215*e1fe3e4aSElliott Hughes           ps name mapping for those cases where they differ. That's what
216*e1fe3e4aSElliott Hughes           you see below.
217*e1fe3e4aSElliott Hughes            -->
218*e1fe3e4aSElliott Hughes    </psNames>
219*e1fe3e4aSElliott Hughes    <extraNames>
220*e1fe3e4aSElliott Hughes      <!-- following are the name that are not taken from the standard Mac glyph order -->
221*e1fe3e4aSElliott Hughes      <psName name="basket"/>
222*e1fe3e4aSElliott Hughes    </extraNames>
223*e1fe3e4aSElliott Hughes  </post>
224*e1fe3e4aSElliott Hughes
225*e1fe3e4aSElliott Hughes</ttFont>
226