From dddb15e1bd7d5578cb1213502c1aebdd06ae6410 Mon Sep 17 00:00:00 2001 From: Cimbali Date: Mon, 11 Dec 2023 19:36:16 +0000 Subject: [PATCH] Include ghostscript fonts in windows distribution --- .github/workflows/draft_release.yml | 7 +++++++ setup.py | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/draft_release.yml b/.github/workflows/draft_release.yml index 5d299a2c..5de26ed2 100644 --- a/.github/workflows/draft_release.yml +++ b/.github/workflows/draft_release.yml @@ -349,6 +349,13 @@ jobs: mingw-w64-${{ matrix.arch }}-python3-babel mingw-w64-${{ matrix.arch }}-python3-watchdog + - name: Install ghostscript "base 35" fonts + shell: msys2 {0} + run: | + curl -L https://sourceforge.net/projects/gs-fonts/files/latest/download -o gs-fonts.tgz + tar czf gs-fonts.tgz + mv fonts /mingw64/share/ + - name: Install python-only dependencies run: | python3 -m pip install --disable-pip-version-check --upgrade pip diff --git a/setup.py b/setup.py index 5cf010d6..ff4ee8cf 100755 --- a/setup.py +++ b/setup.py @@ -125,6 +125,7 @@ def gtk_resources(): pathlib.Path('lib', 'gdk-pixbuf-2.0'), pathlib.Path('share', 'poppler'), pathlib.Path('share', 'themes'), + pathlib.Path('share', 'fonts'), pathlib.Path('share', 'icons'), pathlib.Path('share', 'glib-2.0'), pathlib.Path('share', 'xml')