X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2Fshape%2Frecord-test.sh;h=4f16d9ca36c9f49a3b0efb0519db120274a93560;hb=f0a0bdf96095ae4b3524be4ee4bc32ebe2dfd564;hp=41e13c3c654b3d7a63d819c10c02437df418150f;hpb=8b9bac85deb2ace750acafa5e0da676f633aadeb;p=platform%2Fupstream%2Fharfbuzz.git diff --git a/test/shape/record-test.sh b/test/shape/record-test.sh index 41e13c3..4f16d9c 100755 --- a/test/shape/record-test.sh +++ b/test/shape/record-test.sh @@ -19,6 +19,8 @@ if test "x$1" == 'x-o'; then out=$1 shift fi +hb_subset=$1 +shift hb_shape=$1 shift fontfile=$1 @@ -27,8 +29,12 @@ if test "x${fontfile:0:1}" == 'x-'; then exit 1 fi shift +if ! echo "$hb_subset" | grep -q 'subset'; then + echo "Specify hb-subset (or \"fonttools subset\"): got '$hb_subset'." >&2 + exit 1 +fi if ! echo "$hb_shape" | grep -q 'hb-shape'; then - echo "Specify hb-shape (not hb-view, etc): got "$hb_shape"." >&2 + echo "Specify hb-shape (not hb-view, etc): got '$hb_shape'." >&2 exit 1 fi options= @@ -61,7 +67,7 @@ fi glyph_ids=`echo "$text" | $hb_shape $options --no-glyph-names --no-clusters --no-positions "$fontfile" | sed 's/[][]//g; s/|/,/g'` cp "$fontfile" "$dir/font.ttf" -echo fonttools subset \ +echo $hb_subset \ --glyph-names \ --no-hinting \ --layout-features='*' \ @@ -69,7 +75,7 @@ echo fonttools subset \ --text="$text" \ --output-file="$dir/font.subset.ttf" \ "$dir/font.ttf" -fonttools subset \ +$hb_subset \ --glyph-names \ --no-hinting \ --layout-features='*' \