[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.
This commit is contained in:
parent
cc9bb29491
commit
71a6296620
|
@ -65,16 +65,18 @@ echo fonttools subset \
|
||||||
--glyph-names \
|
--glyph-names \
|
||||||
--no-hinting \
|
--no-hinting \
|
||||||
--layout-features='*' \
|
--layout-features='*' \
|
||||||
"$dir/font.ttf" \
|
|
||||||
--gids="$glyph_ids" \
|
--gids="$glyph_ids" \
|
||||||
--text="$text"
|
--text="$text" \
|
||||||
|
--output-file="$dir/font.subset.ttf" \
|
||||||
|
"$dir/font.ttf"
|
||||||
fonttools subset \
|
fonttools subset \
|
||||||
--glyph-names \
|
--glyph-names \
|
||||||
--no-hinting \
|
--no-hinting \
|
||||||
--layout-features='*' \
|
--layout-features='*' \
|
||||||
"$dir/font.ttf" \
|
|
||||||
--gids="$glyph_ids" \
|
--gids="$glyph_ids" \
|
||||||
--text="$text"
|
--text="$text" \
|
||||||
|
--output-file="$dir/font.subset.ttf" \
|
||||||
|
"$dir/font.ttf"
|
||||||
if ! test -s "$dir/font.subset.ttf"; then
|
if ! test -s "$dir/font.subset.ttf"; then
|
||||||
echo "Subsetter didn't produce nonempty subset font in $dir/font.subset.ttf" >&2
|
echo "Subsetter didn't produce nonempty subset font in $dir/font.subset.ttf" >&2
|
||||||
exit 2
|
exit 2
|
||||||
|
|
Loading…
Reference in New Issue