-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVD-designspace-27-masters-3-axes-do-not.md.xml
More file actions
29 lines (26 loc) · 1.23 KB
/
VD-designspace-27-masters-3-axes-do-not.md.xml
File metadata and controls
29 lines (26 loc) · 1.23 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 = '27 masters 3 axes (Do not)'
page.url = 'Design space/27-masters-3-axes-do-not.html'
content = page.select('Content')
box = content.newBanner()
</code></pre>
<h1>27 masters, 3 axes (How not to do it)</h1>
<pre><code>box = content.newIntroduction()
</code></pre>
<h1>3D cube, with middle Regular as origin. Masters on all corners, all middle ribs and all <strong>min</strong> and <strong>max</strong> axis endpoints.</h1>
<pre><code>section = content.newSection()
box = section.newMain()
</code></pre>
<h2>Usage examples</h2>
<h3>Don’t do this, unless you have too much time at hand.</h3>
<h3>Or if there is a real reason and possibility to automate the generating of masters from a core set of sources.</h3>
<pre><code>from pagebot.elements.vf.designspacegraph import newDesignSpaceGraph
path = 'resources/fonts/typetr/27-master-3-axis.designspace'
path = 'code/27-masters-3-axes.json'
box = newDesignSpaceGraph(parent=section, path=path, stroke=0, nodeStroke=1, labelSize=doc.rootStyle['labelSize'])
</code></pre></document>