forked from larsenwork/monoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.py
executable file
·42 lines (34 loc) · 1.1 KB
/
build.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python2.7
# vim: sts=4 sw=4 ts=4 et
from fontbuilder import *
# Configuration
## Source directory
source = "Source"
## Output directory
output = "_release"
## Fonts to modify
fonts = ['Monoid.sfdir']
# Options to generate
conflicting(
style('loose', Bearing(right=128)),
style('halfloose', Bearing(right=64)),
# style('normal', Bearing(left=0)),
style('halftight', Bearing(left=-64)),
style('tight', Bearing(left=-128)),
)
conflicting(
# option('xsmall', '14px', Line(ascent=1408, descent=384)),
option('small', '15px', Line(1408, 512)),
# option('medium', '16px', Line(1536, 512)),
option('large', '17px', Line(1536, 640)),
# option('xlarge', '18px', Line(1792, 640)),
)
option('0', 'Alt 0', Swap("zero", "zero.alt"))
option('1', 'Alt 1', Swap("one", "one.alt"))
option('3', 'Alt 3', Swap("three", "three.alt"))
option('l', 'Alt l', Swap("l", "l.alt"))
option('s', 'Alt s', Swap("s", "s.alt"))
option('dollar', 'Alt $', Swap("dollar", "dollar.alt"))
option('asterisk', 'Alt asterisk', Swap("asterisk", "asterisk.alt"))
for font in fonts:
build(output, source, font)