-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVD-designspace-4-masters-2-axes.md.xml
More file actions
29 lines (26 loc) · 1.27 KB
/
VD-designspace-4-masters-2-axes.md.xml
File metadata and controls
29 lines (26 loc) · 1.27 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
29
<?xml version="1.0" encoding="utf-8"?>
<document><pre><code># ----------------------------------------
# designspace.html
# ----------------------------------------
page = page.next
page.applyTemplate(template)
page.name = '4 masters 2 axis'
page.url = 'Design space/4-masters-2-axes.html'
content = page.select('Content')
box = content.newBanner()
</code></pre>
<h1>Design space: 4 masters, 2 axes</h1>
<pre><code>box = content.newIntroduction()
</code></pre>
<h1>Two axes. Regular as origin, <strong>min</strong> and <strong>max</strong> masters on both sides. One independent master on second axis.</h1>
<pre><code>section = content.newSection()
box = section.newMain()
</code></pre>
<h2>Usage examples</h2>
<h3>Weight <strong>[wght]</strong> axis with 3 masters in combination with a one-direction axis of independent local influence.</h3>
<h3>Width <strong>[wdth]</strong> axis with 3 masters in combination with a one-direction axis of independent local influence.</h3>
<pre><code>from pagebot.elements.vf.designspacegraph import newDesignSpaceGraph
path = 'resources/fonts/typetr/4-master-2-axes.designspace'
path = 'code/4-masters-2-axes.json'
box = newDesignSpaceGraph(parent=section, path=path, stroke=0, nodeStroke=1, labelSize=doc.rootStyle['labelSize'])
</code></pre></document>