-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVD-designspace-4-masters-2-axes-mm.md.xml
More file actions
28 lines (25 loc) · 1.25 KB
/
VD-designspace-4-masters-2-axes-mm.md.xml
File metadata and controls
28 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<document><pre><code># ----------------------------------------
# designspace.html
# ----------------------------------------
page = page.next
page.applyTemplate(template)
page.name = '4 masters 2 axis (MM)'
page.url = 'Design space/4-masters-2-axes-mm.html'
content = page.select('Content')
box = content.newBanner()
</code></pre>
<h1>Design space: 4 masters, 2 axes (MM)</h1>
<pre><code>box = content.newIntroduction()
</code></pre>
<h1>Two axes, traditional “Multiple Master” square. No origin in the middle, so pick one of the four. <strong>min</strong> and <strong>max</strong> masters corners of the square.</h1>
<pre><code>section = content.newSection()
box = section.newMain()
</code></pre>
<h2>Usage examples</h2>
<h3>Weight <strong>[wght]</strong> axis with 2 masters in combination with a width <strong>[wdth]</strong> axis with 2 masters and all doubled for optical size <strong>[opsz]</strong>.</h3>
<pre><code>from pagebot.elements.vf.designspacegraph import newDesignSpaceGraph
path = 'resources/fonts/typetr/8-master-3-axes.designspace'
path = 'code/4-masters-2-axes-mm.json'
box = newDesignSpaceGraph(parent=section, path=path, stroke=0, nodeStroke=1, labelSize=doc.rootStyle['labelSize'])
</code></pre></document>