fonttools/Tests/varLib/data/BuildAvarIdentityMaps.designspace
Cosimo Lupo 45c08d2858 [varLib_test] add tests for building avar table
this adds three new tests for varLib.build:

1) the input designspace contains a single 'weight' axis with <map>
   elements that modify the normalization mapping;

2) the input designspace contains two 'weight' and 'width' axes both
   with <map> elements, but the 'width' axis only contains identity
   mappings;

3) the input designspace contains two 'weight' and 'width' axes, but
   only one axis ('weight') has some <map> elements.

The master interpolatable ttx files for 'TestFamily3' are a subset of
Noto Sans containing only the letters to type the word "FontTools".
2017-08-16 18:44:18 +01:00

81 lines
3.8 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<designspace format="3">
<axes>
<axis default="400.0" maximum="900.0" minimum="100.0" name="weight" tag="wght">
<map input="100.0" output="26" />
<map input="200.0" output="39" />
<map input="300.0" output="58" />
<map input="400.0" output="90" />
<map input="500.0" output="108" />
<map input="600.0" output="128" />
<map input="700.0" output="151" />
<map input="800.0" output="169" />
<map input="900.0" output="190" />
<labelname xml:lang="en">Weight</labelname>
</axis>
<axis default="100" maximum="100" minimum="70" name="width" tag="wdth">
<map input="70" output="70" />
<map input="79" output="79" />
<map input="89" output="89" />
<map input="100" output="100" />
<labelname xml:lang="en">Width</labelname>
</axis>
</axes>
<sources>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-Light.ufo" name="Test Family 3 Light" stylename="Light">
<location>
<dimension name="weight" xvalue="26.000000" />
<dimension name="width" xvalue="100.000000" />
</location>
</source>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-Regular.ufo" name="Test Family 3 Regular" stylename="Regular">
<lib copy="1" />
<groups copy="1" />
<features copy="1" />
<info copy="1" />
<location>
<dimension name="weight" xvalue="90.000000" />
<dimension name="width" xvalue="100.000000" />
</location>
</source>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-SemiBold.ufo" name="Test Family 3 SemiBold" stylename="SemiBold">
<location>
<dimension name="weight" xvalue="151.000000" />
<dimension name="width" xvalue="100.000000" />
</location>
</source>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-Bold.ufo" name="Test Family 3 Bold" stylename="Bold">
<location>
<dimension name="weight" xvalue="190.000000" />
<dimension name="width" xvalue="100.000000" />
</location>
</source>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-CondensedLight.ufo" name="Test Family 3 Condensed Light" stylename="Condensed Light">
<location>
<dimension name="weight" xvalue="26.000000" />
<dimension name="width" xvalue="70.000000" />
</location>
</source>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-Condensed.ufo" name="Test Family 3 Condensed" stylename="Condensed">
<location>
<dimension name="weight" xvalue="90.000000" />
<dimension name="width" xvalue="70.000000" />
</location>
</source>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-CondensedSemiBold.ufo" name="Test Family 3 Condensed SemiBold" stylename="Condensed SemiBold">
<location>
<dimension name="weight" xvalue="151.000000" />
<dimension name="width" xvalue="70.000000" />
</location>
</source>
<source familyname="Test Family 3" filename="master_ufo/TestFamily3-CondensedBold.ufo" name="Test Family 3 Condensed Bold" stylename="Condensed Bold">
<location>
<dimension name="weight" xvalue="190.000000" />
<dimension name="width" xvalue="70.000000" />
</location>
</source>
</sources>
<instances>
</instances>
</designspace>