1<?xml version='1.0' encoding='UTF-8'?> 2<designspace format="5.0"> 3 <axes elidedfallbackname="Regular"> 4 <axis tag="wght" name="Weight" minimum="200" maximum="1000" default="200"> 5 <labelname xml:lang="en">Wéíght</labelname> 6 <labelname xml:lang="fa-IR">قطر</labelname> 7 <map input="200" output="0"/> 8 <map input="300" output="100"/> 9 <map input="400" output="368"/> 10 <map input="600" output="600"/> 11 <map input="700" output="824"/> 12 <map input="900" output="1000"/> 13 <!-- All axes provide STAT information with the "labels" element. --> 14 <labels> 15 <label uservalue="200" userminimum="200" usermaximum="250" name="Extra Light"> 16 <labelname xml:lang="de">Extraleicht</labelname> 17 <labelname xml:lang="fr">Extra léger</labelname> 18 </label> 19 <label uservalue="300" userminimum="250" usermaximum="350" name="Light"/> 20 <label uservalue="400" userminimum="350" usermaximum="450" name="Regular" elidable="true"/> 21 <label uservalue="600" userminimum="450" usermaximum="650" name="Semi Bold"/> 22 <label uservalue="700" userminimum="650" usermaximum="850" name="Bold"/> 23 <label uservalue="900" userminimum="850" usermaximum="900" name="Black"/> 24 </labels> 25 </axis> 26 27 <axis tag="wdth" name="Width" minimum="50" maximum="150" default="100" hidden="1"> 28 <labelname xml:lang="fr">Chasse</labelname> 29 <map input="50" output="10"/> 30 <map input="100" output="20"/> 31 <map input="125" output="66"/> 32 <map input="150" output="990"/> 33 <labels ordering="1"> 34 <label uservalue="50" name="Condensed"/> 35 <label uservalue="100" name="Normal" elidable="true" oldersibling="true"/> 36 <label uservalue="125" name="Wide"/> 37 <!-- Allow specifying only one end of the range, the other is assumed to 38 be infinity as does otlLib buildStatTable --> 39 <label uservalue="150" userminimum="150" name="Extra Wide"/> 40 </labels> 41 </axis> 42 43 <!-- 44 Discrete axes provide a list of discrete values. 45 No interpolation is allowed between these. 46 --> 47 <axis tag="ital" name="Italic" values="0 1" default="0"> 48 <labels> 49 <!-- Discrete axes also provide STAT information. --> 50 <label uservalue="0" name="Roman" elidable="true" linkeduservalue="1"/> 51 <label uservalue="1" name="Italic"/> 52 </labels> 53 </axis> 54 </axes> 55 56 <!-- Freestanding labels are analogues of STAT format 4 entries. 57 They give names to freestyle locations. --> 58 <labels> 59 <label name="Some Style"> 60 <labelname xml:lang="fr">Un Style</labelname> 61 <location> 62 <dimension name="Weight" uservalue="300"/> 63 <dimension name="Width" uservalue="50"/> 64 <dimension name="Italic" uservalue="0"/> 65 </location> 66 </label> 67 <label name="Other"> 68 <location> 69 <dimension name="Weight" uservalue="700"/> 70 <dimension name="Width" uservalue="100"/> 71 <dimension name="Italic" uservalue="1"/> 72 </location> 73 </label> 74 </labels> 75 76 <rules processing="last"> 77 <rule name="named.rule.1"> 78 <conditionset> 79 <condition name="axisName_a" minimum="0" maximum="1"/> 80 <condition name="axisName_b" minimum="2" maximum="3"/> 81 </conditionset> 82 <sub name="a" with="a.alt"/> 83 </rule> 84 </rules> 85 86 <sources> 87 <source filename="masterTest1.ufo" name="master.ufo1" familyname="MasterFamilyName" stylename="MasterStyleNameOne"> 88 <familyname xml:lang="fr">Montserrat</familyname> 89 <familyname xml:lang="ja">モンセラート</familyname> 90 <lib copy="1"/> 91 <features copy="1"/> 92 <info copy="1"/> 93 <glyph name="A" mute="1"/> 94 <glyph name="Z" mute="1"/> 95 <location> 96 <dimension name="Weight" xvalue="0"/> 97 <dimension name="Width" xvalue="20"/> 98 <dimension name="Italic" xvalue="0"/> 99 </location> 100 </source> 101 <source filename="masterTest2.ufo" name="master.ufo2" familyname="MasterFamilyName" stylename="MasterStyleNameTwo"> 102 <kerning mute="1"/> 103 <location> 104 <dimension name="Weight" xvalue="1000"/> 105 <dimension name="Width" xvalue="20"/> 106 <dimension name="Italic" xvalue="0"/> 107 </location> 108 </source> 109 <source filename="masterTest2.ufo" name="master.ufo2" familyname="MasterFamilyName" stylename="Supports" layer="supports"> 110 <location> 111 <dimension name="Weight" xvalue="1000"/> 112 <dimension name="Width" xvalue="20"/> 113 <dimension name="Italic" xvalue="0"/> 114 </location> 115 </source> 116 <source filename="masterTest2.ufo" name="master.ufo3" familyname="MasterFamilyName" stylename="FauxItalic"> 117 <location> 118 <dimension name="Weight" xvalue="0"/> 119 <dimension name="Width" xvalue="100"/> 120 <dimension name="Italic" xvalue="1"/> 121 </location> 122 </source> 123 </sources> 124 125 <variable-fonts> 126 <!-- 127 If this element is present, all output targets must be listed within it. 128 If it is not present, the full Designspace is the output, like in version 4.x. 129 130 Continuous axes can be included either: 131 * in full, 132 * or only on a reduced interval (different minimum-maximum), 133 * or only at 1 discrete location 134 Dicrete axes cannot be included in full, and we must specify a value 135 (or the compiler should assume the default value). 136 --> 137 <variable-font name="Test_WghtWdth" filename="Test_WghtWdth_different_from_name.ttf"> 138 <!-- This one is the Roman (default location along ital), 139 with full range for the Weight axis. --> 140 <axis-subsets> 141 <axis-subset name="Weight"/> 142 <axis-subset name="Width"/> 143 </axis-subsets> 144 <lib> 145 <dict> 146 <key>com.vtt.source</key> 147 <string>sources/vtt/Test_WghtWdth.vtt</string> 148 </dict> 149 </lib> 150 </variable-font> 151 <variable-font name="Test_Wght"> 152 <!-- This one is the Roman (default location along ital), 153 with full range for the Weight axis. --> 154 <axis-subsets> 155 <axis-subset name="Weight"/> 156 </axis-subsets> 157 <lib> 158 <dict> 159 <key>com.vtt.source</key> 160 <string>sources/vtt/Test_Wght.vtt</string> 161 </dict> 162 </lib> 163 </variable-font> 164 <variable-font name="TestCd_Wght"> 165 <!-- This one is the Roman (default location along ital), 166 with full range for the Weight axis. --> 167 <axis-subsets> 168 <axis-subset name="Weight"/> 169 <axis-subset name="Width" uservalue="0"/> 170 </axis-subsets> 171 </variable-font> 172 <variable-font name="TestWd_Wght"> 173 <!-- This one is the Roman (default location along ital), 174 with full range for the Weight axis. --> 175 <axis-subsets> 176 <axis-subset name="Weight"/> 177 <axis-subset name="Width" uservalue="1000"/> 178 </axis-subsets> 179 </variable-font> 180 <variable-font name="TestItalic_Wght"> 181 <!-- This one is the Italic, with full range for the Weight axis. --> 182 <axis-subsets> 183 <axis-subset name="Weight"/> 184 <axis-subset name="Italic" uservalue="1"/> 185 </axis-subsets> 186 </variable-font> 187 <variable-font name="TestRB_Wght"> 188 <!-- As an example, this would be the Roman with a reduced range. --> 189 <axis-subsets> 190 <axis-subset name="Weight" userminimum="400" usermaximum="700" userdefault="400"/> 191 <axis-subset name="Italic" uservalue="0"/> 192 </axis-subsets> 193 </variable-font> 194 </variable-fonts> 195 196 <instances> 197 <instance name="instance.ufo1" familyname="InstanceFamilyName" stylename="InstanceStyleName" filename="instances/instanceTest1.ufo" postscriptfontname="InstancePostscriptName" stylemapfamilyname="InstanceStyleMapFamilyName" stylemapstylename="InstanceStyleMapStyleName"> 198 <stylename xml:lang="fr">Demigras</stylename> 199 <stylename xml:lang="ja">半ば</stylename> 200 <familyname xml:lang="fr">Montserrat</familyname> 201 <familyname xml:lang="ja">モンセラート</familyname> 202 <stylemapstylename xml:lang="de">Standard</stylemapstylename> 203 <stylemapfamilyname xml:lang="de">Montserrat Halbfett</stylemapfamilyname> 204 <stylemapfamilyname xml:lang="ja">モンセラート SemiBold</stylemapfamilyname> 205 <location> 206 <dimension name="Weight" xvalue="500"/> 207 <dimension name="Width" xvalue="20"/> 208 </location> 209 210 <!-- The following elements are deprecated in v5.0. They can still be 211 read, but they won't be written out again (they don't roundtrip). --> 212 <!-- ROUNDTRIP_TEST_REMOVE_ME_BEGIN --> 213 <glyphs> 214 <glyph mute="1" unicode="0x123 0x124 0x125" name="arrow"/> 215 </glyphs> 216 <kerning/> 217 <info/> 218 <!-- ROUNDTRIP_TEST_REMOVE_ME_END --> 219 220 <lib> 221 <dict> 222 <key>com.coolDesignspaceApp.binaryData</key> 223 <data> 224 PGJpbmFyeSBndW5rPg== 225 </data> 226 <key>com.coolDesignspaceApp.specimenText</key> 227 <string>Hamburgerwhatever</string> 228 </dict> 229 </lib> 230 </instance> 231 <instance name="instance.ufo2" familyname="InstanceFamilyName" stylename="InstanceStyleName" filename="instances/instanceTest2.ufo" postscriptfontname="InstancePostscriptName" stylemapfamilyname="InstanceStyleMapFamilyName" stylemapstylename="InstanceStyleMapStyleName"> 232 <location> 233 <dimension name="Weight" xvalue="500"/> 234 <dimension name="Width" xvalue="400" yvalue="300"/> 235 </location> 236 <!-- ROUNDTRIP_TEST_REMOVE_ME_BEGIN --> 237 <glyphs> 238 <glyph unicode="0x65 0xc9 0x12d" name="arrow"> 239 <location> 240 <dimension name="Weight" xvalue="120"/> 241 <dimension name="Width" xvalue="100"/> 242 </location> 243 <note>A note about this glyph</note> 244 <masters> 245 <master glyphname="BB" source="master.ufo1"> 246 <location> 247 <dimension name="Weight" xvalue="20"/> 248 <dimension name="Width" xvalue="20"/> 249 </location> 250 </master> 251 <master glyphname="CC" source="master.ufo2"> 252 <location> 253 <dimension name="Weight" xvalue="900"/> 254 <dimension name="Width" xvalue="900"/> 255 </location> 256 </master> 257 </masters> 258 </glyph> 259 <glyph name="arrow2"/> 260 </glyphs> 261 <kerning/> 262 <info/> 263 <!-- ROUNDTRIP_TEST_REMOVE_ME_END --> 264 </instance> 265 266 <!-- 267 These instances will derive all their data from the data above. 268 269 Instances can specify their location either: 270 - using the name of a location label 271 - with design coordinates (xvalue="") 272 - with user coordinates (uservalue="") 273 - with a mix of both coordinate systems 274 --> 275 <instance location="Some Style"/> 276 <instance> 277 <location> 278 <dimension name="Weight" xvalue="600"/> 279 <dimension name="Width" xvalue="401" yvalue="420"/> 280 </location> 281 </instance> 282 <instance> 283 <location> 284 <dimension name="Weight" xvalue="10"/> 285 <dimension name="Width" uservalue="100"/> 286 <dimension name="Italic" xvalue="0"/> 287 </location> 288 </instance> 289 <instance> 290 <location> 291 <dimension name="Weight" uservalue="300"/> 292 <dimension name="Width" uservalue="130"/> 293 <dimension name="Italic" uservalue="1"/> 294 </location> 295 </instance> 296 </instances> 297 298 <lib> 299 <dict> 300 <key>com.coolDesignspaceApp.previewSize</key> 301 <integer>30</integer> 302 </dict> 303 </lib> 304</designspace> 305