Skip to content

Commit 8aa84ec

Browse files
ci: install fonttools for wasm font subset
1 parent 8094075 commit 8aa84ec

5 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build-assets.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
with:
5757
python-version: '3.x'
5858

59+
- name: Install Python dependencies
60+
run: python -m pip install --disable-pip-version-check fonttools
61+
5962
- name: Set up Node.js
6063
uses: actions/setup-node@v4
6164
with:

.github/workflows/pages-preview.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
distribution: zulu
3030
java-version: 17
3131

32+
- name: Set up Python
33+
uses: actions/setup-python@v4
34+
with:
35+
python-version: '3.x'
36+
37+
- name: Install Python dependencies
38+
run: python -m pip install --disable-pip-version-check fonttools
39+
3240
- name: Set up Node.js 20
3341
uses: actions/setup-node@v4
3442
with:

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
with:
4141
python-version: '3.x'
4242

43+
- name: Install Python dependencies
44+
run: python -m pip install --disable-pip-version-check fonttools
45+
4346
- name: Set up Node.js
4447
uses: actions/setup-node@v4
4548
with:
Binary file not shown.

scripts/subset_wasm_font.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"Missing dependency: fonttools. Install it with `python -m pip install fonttools`."
1414
) from exc
1515

16-
1716
PROJECT_ROOT = Path(__file__).resolve().parent.parent
1817
DEFAULT_SOURCE_FONT = PROJECT_ROOT / "scripts" / "font-source" / "NotoSansSC_VF.ttf"
1918
DEFAULT_OUTPUT_FONT = (

0 commit comments

Comments
 (0)