xref: /aosp_15_r20/external/fonttools/Tests/varLib/data/test_results/TestVariableCOLR-VF.ttx (revision e1fe3e4ad2793916b15cccdc4a7da52a7e1dd0e9)
1<?xml version="1.0" encoding="UTF-8"?>
2<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="4.33">
3
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=".space"/>
8    <GlyphID id="2" name="A"/>
9    <GlyphID id="3" name="B"/>
10    <GlyphID id="4" name="A.0"/>
11  </GlyphOrder>
12
13  <fvar>
14
15    <!-- Weight -->
16    <Axis>
17      <AxisTag>wght</AxisTag>
18      <Flags>0x0</Flags>
19      <MinValue>400.0</MinValue>
20      <DefaultValue>400.0</DefaultValue>
21      <MaxValue>700.0</MaxValue>
22      <AxisNameID>256</AxisNameID>
23    </Axis>
24  </fvar>
25
26  <glyf>
27
28    <!-- The xMin, yMin, xMax and yMax values
29         will be recalculated by the compiler. -->
30
31    <TTGlyph name=".notdef" xMin="51" yMin="-250" xMax="461" yMax="950">
32      <contour>
33        <pt x="51" y="-250" on="1"/>
34        <pt x="51" y="950" on="1"/>
35        <pt x="461" y="950" on="1"/>
36        <pt x="461" y="-250" on="1"/>
37      </contour>
38      <contour>
39        <pt x="102" y="-199" on="1"/>
40        <pt x="410" y="-199" on="1"/>
41        <pt x="410" y="899" on="1"/>
42        <pt x="102" y="899" on="1"/>
43      </contour>
44      <instructions/>
45    </TTGlyph>
46
47    <TTGlyph name=".space"/><!-- contains no outline data -->
48
49    <TTGlyph name="A"/><!-- contains no outline data -->
50
51    <TTGlyph name="A.0" xMin="398" yMin="110" xMax="878" yMax="590">
52      <contour>
53        <pt x="878" y="350" on="1"/>
54        <pt x="878" y="416" on="0"/>
55        <pt x="813" y="525" on="0"/>
56        <pt x="704" y="590" on="0"/>
57        <pt x="638" y="590" on="1"/>
58        <pt x="571" y="590" on="0"/>
59        <pt x="462" y="525" on="0"/>
60        <pt x="398" y="416" on="0"/>
61        <pt x="398" y="350" on="1"/>
62        <pt x="398" y="284" on="0"/>
63        <pt x="462" y="175" on="0"/>
64        <pt x="571" y="110" on="0"/>
65        <pt x="638" y="110" on="1"/>
66        <pt x="704" y="110" on="0"/>
67        <pt x="813" y="175" on="0"/>
68        <pt x="878" y="284" on="0"/>
69      </contour>
70      <instructions/>
71    </TTGlyph>
72
73    <TTGlyph name="B"/><!-- contains no outline data -->
74
75  </glyf>
76
77  <COLR>
78    <Version value="1"/>
79    <!-- BaseGlyphRecordCount=0 -->
80    <!-- LayerRecordCount=0 -->
81    <BaseGlyphList>
82      <!-- BaseGlyphCount=2 -->
83      <BaseGlyphPaintRecord index="0">
84        <BaseGlyph value="A"/>
85        <Paint Format="1"><!-- PaintColrLayers -->
86          <NumLayers value="3"/>
87          <FirstLayerIndex value="0"/>
88        </Paint>
89      </BaseGlyphPaintRecord>
90      <BaseGlyphPaintRecord index="1">
91        <BaseGlyph value="B"/>
92        <Paint Format="1"><!-- PaintColrLayers -->
93          <NumLayers value="2"/>
94          <FirstLayerIndex value="3"/>
95        </Paint>
96      </BaseGlyphPaintRecord>
97    </BaseGlyphList>
98    <LayerList>
99      <!-- LayerCount=5 -->
100      <Paint index="0" Format="10"><!-- PaintGlyph -->
101        <Paint Format="2"><!-- PaintSolid -->
102          <PaletteIndex value="0"/>
103          <Alpha value="1.0"/>
104        </Paint>
105        <Glyph value="A.0"/>
106      </Paint>
107      <Paint index="1" Format="15"><!-- PaintVarTranslate -->
108        <Paint Format="10"><!-- PaintGlyph -->
109          <Paint Format="2"><!-- PaintSolid -->
110            <PaletteIndex value="2"/>
111            <Alpha value="1.0"/>
112          </Paint>
113          <Glyph value="A.0"/>
114        </Paint>
115        <dx value="0"/>
116        <dy value="-120"/>
117        <VarIndexBase value="0"/>
118      </Paint>
119      <Paint index="2" Format="14"><!-- PaintTranslate -->
120        <Paint Format="10"><!-- PaintGlyph -->
121          <Paint Format="2"><!-- PaintSolid -->
122            <PaletteIndex value="1"/>
123            <Alpha value="1.0"/>
124          </Paint>
125          <Glyph value="A.0"/>
126        </Paint>
127        <dx value="0"/>
128        <dy value="-240"/>
129      </Paint>
130      <Paint index="3" Format="14"><!-- PaintTranslate -->
131        <Paint Format="10"><!-- PaintGlyph -->
132          <Paint Format="3"><!-- PaintVarSolid -->
133            <PaletteIndex value="2"/>
134            <Alpha value="1.0"/>
135            <VarIndexBase value="2"/>
136          </Paint>
137          <Glyph value="A.0"/>
138        </Paint>
139        <dx value="0"/>
140        <dy value="-120"/>
141      </Paint>
142      <Paint index="4" Format="14"><!-- PaintTranslate -->
143        <Paint Format="10"><!-- PaintGlyph -->
144          <Paint Format="2"><!-- PaintSolid -->
145            <PaletteIndex value="1"/>
146            <Alpha value="1.0"/>
147          </Paint>
148          <Glyph value="A.0"/>
149        </Paint>
150        <dx value="0"/>
151        <dy value="-240"/>
152      </Paint>
153    </LayerList>
154    <ClipList Format="1">
155      <Clip>
156        <Glyph value="A"/>
157        <ClipBox Format="2">
158          <xMin value="380"/>
159          <yMin value="-140"/>
160          <xMax value="880"/>
161          <yMax value="600"/>
162          <VarIndexBase value="3"/>
163        </ClipBox>
164      </Clip>
165      <Clip>
166        <Glyph value="B"/>
167        <ClipBox Format="1">
168          <xMin value="380"/>
169          <yMin value="-140"/>
170          <xMax value="880"/>
171          <yMax value="480"/>
172        </ClipBox>
173      </Clip>
174    </ClipList>
175    <VarIndexMap Format="0">
176      <!-- Omitted values default to 0xFFFF/0xFFFF (no variations) -->
177      <Map index="0" outer="0" inner="1"/>
178      <Map index="1"/>
179      <Map index="2" outer="0" inner="0"/>
180      <Map index="3"/>
181      <Map index="4"/>
182      <Map index="5" outer="0" inner="1"/>
183      <Map index="6"/>
184    </VarIndexMap>
185    <VarStore Format="1">
186      <Format value="1"/>
187      <VarRegionList>
188        <!-- RegionAxisCount=1 -->
189        <!-- RegionCount=1 -->
190        <Region index="0">
191          <VarRegionAxis index="0">
192            <StartCoord value="0.0"/>
193            <PeakCoord value="1.0"/>
194            <EndCoord value="1.0"/>
195          </VarRegionAxis>
196        </Region>
197      </VarRegionList>
198      <!-- VarDataCount=1 -->
199      <VarData index="0">
200        <!-- ItemCount=2 -->
201        <NumShorts value="1"/>
202        <!-- VarRegionCount=1 -->
203        <VarRegionIndex index="0" value="0"/>
204        <Item index="0" value="[-8192]"/>
205        <Item index="1" value="[100]"/>
206      </VarData>
207    </VarStore>
208  </COLR>
209
210  <CPAL>
211    <version value="0"/>
212    <numPaletteEntries value="3"/>
213    <palette index="0">
214      <color index="0" value="#0000FFFF"/>
215      <color index="1" value="#008000FF"/>
216      <color index="2" value="#FF0000FF"/>
217    </palette>
218  </CPAL>
219
220</ttFont>
221