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".
46 lines
1.9 KiB
XML
46 lines
1.9 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>
|
|
</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" />
|
|
</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" />
|
|
</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" />
|
|
</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" />
|
|
</location>
|
|
</source>
|
|
</sources>
|
|
<instances>
|
|
</instances>
|
|
</designspace>
|