CI: Add font with references

[why]
We had a bug that font-patcher crashes with fonts with references.

[how]
Just try such a font with all fontforge versions. Just tests if it
patches, the patch result is not checked.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2023-03-10 11:03:18 +01:00
parent 4a3ca9069d
commit 376e39e513

View file

@ -122,3 +122,10 @@ jobs:
- name: Check if patched font generated - name: Check if patched font generated
run: | run: |
[ -e "$GITHUB_WORKSPACE/temp/Caskaydia Cove Bold Nerd Font Complete.otf" ] && echo "File exists" || exit 1 [ -e "$GITHUB_WORKSPACE/temp/Caskaydia Cove Bold Nerd Font Complete.otf" ] && echo "File exists" || exit 1
- name: Check if font with references is patched
# (patch result not checked)
run: |
fontforge --script ./font-patcher /usr/share/fonts/truetype/ubuntu/UbuntuMono-R.ttf \
--quiet --no-progressbars --outputdir $GITHUB_WORKSPACE/temp/
[ -e "$GITHUB_WORKSPACE/temp/Ubuntu Mono Nerd Font.ttf" ] && echo "File exists" || exit 1