forked from larsenwork/monoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.py
executable file
·41 lines (33 loc) · 1.07 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
#!/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-Oblique.sfdir', '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('small', '13px', Line(1536, 128)),
option('small', '14px', Line(1536, 256)),
# option('medium', 15px', Line(1664, 256)),
option('large', '16px', Line(1664, 384)),
option('large', '17px', Line(1792, 384))
)
option('1', 'Alt 1', Swap("one", "one.base"))
option('3', 'Alt 3', Swap("three", "three.russian"))
option('l', 'Alt l', Swap("l", "l.zstyle"))
option('s', 'Alt s', Swap("s", "s.retina"))
option('dollar', 'Alt $', Swap("dollar", "dollar.empty"))
option('asterisk', 'Alt asterisk', Swap("asterisk", "asterisk.multi"))
for font in fonts:
build(output, source, font)