Skip to content

Commit c20ede9

Browse files
authored
✅ fix: do not patch xAvgCharWidth and hdmx for gothic and ui (#32)
1 parent 2872bfa commit c20ede9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/generate-fonts.yml

+4
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ jobs:
145145
- name: install fonttools
146146
run: pip install fonttools
147147
- name: correcting xAvgCharWidth to fix alignment issue
148+
if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }}
148149
run: |
149150
ttx -t "OS/2" "${FILENAME}.ttf"
150151
ttx -t "OS/2" "${FILENAME}-nerd-font.ttf"
@@ -158,6 +159,7 @@ jobs:
158159
mv "${FILENAME}-nerd-font.ttf" "${FILENAME}-nerd-font.original.ttf"
159160
ttx -o "${FILENAME}-nerd-font.ttf" -m "${FILENAME}-nerd-font.original.ttf" "${FILENAME}-nerd-font.ttx"
160161
- name: build hdmx table to fix alignment issue
162+
if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }}
161163
run: python build-hdmx-for-sarasa.py "${FILENAME}-nerd-font.ttf"
162164
- name: patch TTF font family name
163165
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:
264266
- name: install fonttools
265267
run: pip install fonttools
266268
- name: correcting xAvgCharWidth to fix alignment issue
269+
if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }}
267270
run: |
268271
ttx -t "OS/2" "${FILENAME}.ttf"
269272
ttx -t "OS/2" "${FILENAME}-nerd-font.ttf"
@@ -277,6 +280,7 @@ jobs:
277280
mv "${FILENAME}-nerd-font.ttf" "${FILENAME}-nerd-font.original.ttf"
278281
ttx -o "${FILENAME}-nerd-font.ttf" -m "${FILENAME}-nerd-font.original.ttf" "${FILENAME}-nerd-font.ttx"
279282
- name: build hdmx table to fix alignment issue
283+
if: ${{ matrix.styles != 'gothic' && matrix.styles != 'ui' }}
280284
run: python build-hdmx-for-sarasa.py "${FILENAME}-nerd-font.ttf"
281285
- name: patch TTF font family name
282286
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 }}

0 commit comments

Comments
 (0)