summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..5a5e549
--- /dev/null
+++ b/config.py
@@ -0,0 +1,46 @@
+from fontTools.subset import Options
+
+config = {
+ # chrome or firefox
+ 'selenium_driver_name': 'chrome',
+
+ # take screenshots before and after and check that they are identical
+ 'screenshots': True,
+
+ # pyftsubset options, see pyftsubset --help
+ 'ftsubset_options': [
+ '--desubroutinize',
+ '--layout-scripts=latn',
+ '--layout-features-=curs,dnom,frac,locl,mark,mkmk',
+ '--name-IDs=',
+ '--with-zopfli',
+ ],
+
+ # font configuration table.
+ # family: no default, mandatory
+ # weight: must be string, mandatory
+ # fontfile: must be string, mandatory
+ # extratext: non-DOM text to add to subset (e.g. CSS content). default: none
+ # outfile: dict of {woff, woff2} output filenames. default: s/.[ot]tf$/.subset.woff(2)/
+ 'fonts': [
+ {
+ 'family': 'EB Garamond',
+ 'weight': '400',
+ 'style': 'italic',
+ 'fontfile': '../resume/EBGaramond-Italic.otf',
+ 'extratext': '@'
+ },
+ {
+ 'family': 'EB Garamond',
+ 'weight': '400',
+ 'style': 'normal',
+ 'fontfile': '../resume/EBGaramond-Regular.otf'
+ },
+ {
+ 'family': 'EB Garamond',
+ 'weight': '500',
+ 'style': 'normal',
+ 'fontfile': '../resume/EBGaramond-Medium.otf'
+ }
+ ],
+}