From c20ede9e731dd08e02992226aafde45952908284 Mon Sep 17 00:00:00 2001 From: jonz94 Date: Mon, 30 Sep 2024 13:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20fix:=20do=20not=20patch=20`xAvgChar?= =?UTF-8?q?Width`=20and=20`hdmx`=20for=20`gothic`=20and=20`ui`=20(#32)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/generate-fonts.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/generate-fonts.yml b/.github/workflows/generate-fonts.yml index ef5f29e..b265dce 100644 --- a/.github/workflows/generate-fonts.yml +++ b/.github/workflows/generate-fonts.yml @@ -145,6 +145,7 @@ jobs: - name: install fonttools run: pip install fonttools - name: correcting xAvgCharWidth to fix alignment issue + if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }} run: | ttx -t "OS/2" "${FILENAME}.ttf" ttx -t "OS/2" "${FILENAME}-nerd-font.ttf" @@ -158,6 +159,7 @@ jobs: mv "${FILENAME}-nerd-font.ttf" "${FILENAME}-nerd-font.original.ttf" ttx -o "${FILENAME}-nerd-font.ttf" -m "${FILENAME}-nerd-font.original.ttf" "${FILENAME}-nerd-font.ttx" - name: build hdmx table to fix alignment issue + if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }} run: python build-hdmx-for-sarasa.py "${FILENAME}-nerd-font.ttf" - name: patch TTF font family name run: python patch-ttf-name-for-sarasa-nerd.py "${FILENAME}-nerd-font.ttf" ${{ matrix.styles }} ${{ matrix.orthographies }} ${{ matrix.variants }} ${{ env.NERD_FONTS_VERSION }} ${{ github.ref_name }} @@ -264,6 +266,7 @@ jobs: - name: install fonttools run: pip install fonttools - name: correcting xAvgCharWidth to fix alignment issue + if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }} run: | ttx -t "OS/2" "${FILENAME}.ttf" ttx -t "OS/2" "${FILENAME}-nerd-font.ttf" @@ -277,6 +280,7 @@ jobs: mv "${FILENAME}-nerd-font.ttf" "${FILENAME}-nerd-font.original.ttf" ttx -o "${FILENAME}-nerd-font.ttf" -m "${FILENAME}-nerd-font.original.ttf" "${FILENAME}-nerd-font.ttx" - name: build hdmx table to fix alignment issue + if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }} run: python build-hdmx-for-sarasa.py "${FILENAME}-nerd-font.ttf" - name: patch TTF font family name run: python patch-ttf-name-for-sarasa-nerd.py "${FILENAME}-nerd-font.ttf" ${{ matrix.styles }} ${{ matrix.orthographies }} ${{ matrix.variants }} ${{ env.NERD_FONTS_VERSION }} ${{ github.ref_name }}