From 71a62966202012300a2cf2c8fbaae32354d136ba Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 23 Jun 2021 18:16:56 +0200 Subject: [PATCH] [tests] Make record-test.sh work with .otf files It hard-codes the file extension, but fonttools sunset will use .otf for CFF fonts, so hard-code the output file from subset as well. --- test/shaping/record-test.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/shaping/record-test.sh b/test/shaping/record-test.sh index 62a479599..963d180e0 100755 --- a/test/shaping/record-test.sh +++ b/test/shaping/record-test.sh @@ -65,16 +65,18 @@ echo fonttools subset \ --glyph-names \ --no-hinting \ --layout-features='*' \ - "$dir/font.ttf" \ --gids="$glyph_ids" \ - --text="$text" + --text="$text" \ + --output-file="$dir/font.subset.ttf" \ + "$dir/font.ttf" fonttools subset \ --glyph-names \ --no-hinting \ --layout-features='*' \ - "$dir/font.ttf" \ --gids="$glyph_ids" \ - --text="$text" + --text="$text" \ + --output-file="$dir/font.subset.ttf" \ + "$dir/font.ttf" if ! test -s "$dir/font.subset.ttf"; then echo "Subsetter didn't produce nonempty subset font in $dir/font.subset.ttf" >&2 exit 2