File: build_variable

package info (click to toggle)
fonts-firacode 5.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,240 kB
  • sloc: sh: 186; python: 111; makefile: 15
file content (31 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download
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
#!/bin/bash -euo pipefail

cd "`dirname $0`/.."

source venv/bin/activate

DIR=distr/variable_ttf
FILE=FiraCode-VF.ttf

rm -rf $DIR/$FILE
fontmake -g FiraCode.glyphs -o variable --output-dir $DIR

cd distr/variable_ttf

# fix variable font metadata – very important
gftools fix-vf-meta $FILE
mv $FILE.fix $FILE

# other fixes for metadata and hinting
gftools fix-nonhinting $FILE $FILE.fix
mv $FILE.fix $FILE

gftools fix-gasp --autofix $FILE
mv $FILE.fix $FILE

debian/script/gftools-fix-dsig.py --autofix $FILE

# cleanup of temp files
rm -rf *-gasp.ttf

# TODO (late 2019?): use TTFautohint-VF for variable font (current support is minimal)