Skip to content

Commit

Permalink
Introduce default master
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Sep 13, 2023
1 parent 9710137 commit 8ca7b97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion _sources/Wavefont.designspace
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<map input="-100" output="0"/>
<map input="100" output="1"/>
</axis>
<axis default="20" minimum="20" maximum="1000" name="Weight" tag="wght">
<axis default="100" minimum="20" maximum="1000" name="Weight" tag="wght">
<map input="20" output="5"/>
<map input="100" output="25"/>
<map input="1000" output="250"/>
</axis>
</axes>
Expand Down
9 changes: 7 additions & 2 deletions plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function alias(value, char) {
// axes definition, per https://github.com/dy/wavefont/issues/42
const AXES = {
roundness: { name: 'Roundness', tag: 'ROND', min: 0, max: 100 },
weight: { name: 'Weight', tag: 'wght', min: 5, max: 250 },
weight: { name: 'Weight', tag: 'wght', min: 5, max: 250, dflt: 25 },
align: { name: 'Vertical Element Alignment', tag: 'YELA', min: 0, max: 1 }
}

Expand All @@ -66,7 +66,12 @@ const MASTERS = {
'wmin,rmin,amax': { weight: AXES.weight.min, roundness: AXES.roundness.min, align: AXES.align.max },
'wmin,rmax,amax': { weight: AXES.weight.min, roundness: AXES.roundness.max, align: AXES.align.max },
'wmax,rmin,amax': { weight: AXES.weight.max, roundness: AXES.roundness.min, align: AXES.align.max },
'wmax,rmax,amax': { weight: AXES.weight.max, roundness: AXES.roundness.max, align: AXES.align.max }
'wmax,rmax,amax': { weight: AXES.weight.max, roundness: AXES.roundness.max, align: AXES.align.max },

'wdflt,rmin,amin': { weight: AXES.weight.dflt, roundness: AXES.roundness.min, align: AXES.align.min },
'wdflt,rmax,amin': { weight: AXES.weight.dflt, roundness: AXES.roundness.max, align: AXES.align.min },
'wdflt,rmin,amax': { weight: AXES.weight.dflt, roundness: AXES.roundness.min, align: AXES.align.max },
'wdflt,rmax,amax': { weight: AXES.weight.dflt, roundness: AXES.roundness.max, align: AXES.align.max }
}

module.exports = function (plop) {
Expand Down

0 comments on commit 8ca7b97

Please sign in to comment.