Skip to content

Commit 66e037f

Browse files
committed
Update build deps
1 parent 1c4866e commit 66e037f

8 files changed

Lines changed: 43 additions & 263 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- '.github/workflows/**'
99
- 'FiraCode.glyphs'
10+
- 'requirements.txt'
1011
- 'script/**'
1112

1213
jobs:
@@ -36,7 +37,7 @@ jobs:
3637
- name: Install Python Dependencies
3738
run: |
3839
pip install --upgrade pip
39-
pip install fontmake glyphsLib gftools fontbakery ufo2ft statmake
40+
pip install -r requirements.txt
4041
- if: startsWith(github.ref, 'refs/tags/')
4142
run: python3 ./script/update_version.py
4243
- run: ./script/build.sh

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ distr/*/
1717
.idea
1818
.fleet
1919
*.iml
20-
*.glyphspackage
20+
*.glyphspackage
21+
.vibe

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM python:3
22

33
WORKDIR /opt
44

5-
RUN pip install --upgrade Pillow==5.4.1 idna==2.8 requests==2.21.0 urllib3==1.24.1 pycairo==1.20.1 gftools==0.7.4 fontmake==2.4.0 fontbakery==0.8.0
5+
COPY requirements.txt .
6+
RUN pip install -r requirements.txt
67
RUN apt-get update && \
78
apt-get install -y ttfautohint && \
89
apt-get install -y woff2 && \

FiraCode.glyphs

Lines changed: 24 additions & 242 deletions
Large diffs are not rendered by default.

clojure/fira_code/features.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
[_ name code'] (re-matches #"(?s)###[ ]*([^\n]*[^\n ])[ ]*\n(.*)" code)
2727
code (trim (or code' code))
2828
feature (cond-> {:code code}
29-
name (assoc :labels
30-
[{:language "dflt"
31-
:value name}])
29+
(and (str/starts-with? tag "ss") name)
30+
(assoc :labels
31+
[{:language "dflt"
32+
:value name}])
3233
true (assoc :tag tag))]
3334
(glyphs/set-feature font tag feature)))
3435

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fontmake==3.11.1
2+
glyphsLib==6.12.7
3+
gftools==0.9.993
4+
fontbakery==1.1.0
5+
ufo2ft==3.7.0
6+
uharfbuzz==0.53.3

script/bootstrap_linux.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,5 @@ python3.8 -m pip install virtualenv --user
1010
python3.8 -m virtualenv venv
1111
source venv/bin/activate
1212

13-
# https://github.com/googlefonts/gftools/issues/121
14-
python3.8 -m pip install -U Pillow==5.4.1 idna==2.8 requests==2.21.0 urllib3==1.24.1
1513
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
16-
python3.8 -m pip install pycairo
17-
python3.8 -m pip install git+https://github.com/googlefonts/gftools
18-
19-
python3.8 -m pip install fontmake
20-
python3.8 -m pip install fontbakery
14+
python3.8 -m pip install -r requirements.txt

script/bootstrap_macos.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@ brew install python@3.12
66
python3.12 -m venv venv
77
source venv/bin/activate
88

9-
## https://github.com/googlefonts/gftools/issues/121
109
brew install pkg-config
1110
brew install zlib
12-
pip install -U Pillow==8.0.1 idna==2.8 requests==2.21.0 urllib3==1.24.1
1311
export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig"
14-
pip install pycairo
15-
pip install gftools
16-
17-
pip install fontmake
12+
pip install -r requirements.txt
1813
brew install ttfautohint
1914
brew install woff2
2015
brew tap bramstein/webfonttools
21-
brew install sfnt2woff-zopfli
22-
pip install fontbakery
16+
brew install sfnt2woff-zopfli

0 commit comments

Comments
 (0)