-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.py
executable file
·54 lines (38 loc) · 971 Bytes
/
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
43
44
45
46
47
48
49
50
51
52
53
54
#! /usr/bin/env python
import hindkit as kit
kit.confirm_version('0.3.2')
# - - -
family = kit.Family(
trademark = 'Shrikhand',
script = 'Gujarati',
hide_script_name = True,
)
family.set_masters(
masters = [kit.Master(family, 'Regular', 0)],
modules = [
'kerning',
'mark_positioning',
'mark_to_mark_positioning',
'devanagari_matra_i_variants',
],
)
family.set_styles([('Regular', 0, 400)])
# - - -
builder = kit.Builder(family)
builder.fontrevision = '1.000'
kit.builder.devanagari.MATRA_I_NAME_STEM = 'mI.'
builder.set_options([
'prepare_styles', # stage i
'prepare_features', # stage ii
'compile', # stage iii
# 'makeinstances', #!
'checkoutlines', #!
# 'autohint', #!
'do_style_linking',
'use_os_2_version_4',
'prefer_typo_metrics',
'is_width_weight_slope_only',
])
# builder.generate_designspace()
builder.generate_fmndb()
builder.build()