Skip to content

Commit

Permalink
✅ fix: do not patch xAvgCharWidth and hdmx for gothic and ui (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonz94 authored Sep 30, 2024
1 parent 2872bfa commit c20ede9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/generate-fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }}
Expand Down Expand Up @@ -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"
Expand All @@ -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 }}
Expand Down

0 comments on commit c20ede9

Please # to comment.