Imported Upstream version 1.8.1
[platform/upstream/harfbuzz.git] / test / shaping / record-test.sh
index f31d30b..93ebcfc 100755 (executable)
@@ -46,15 +46,22 @@ if test $? != 0; then
        echo "hb-shape failed." >&2
        exit 2
 fi
-glyph_names=`echo "$text" | $hb_shape $options --no-clusters --no-positions "$fontfile" | sed 's/[][]//g; s/|/,/g'`
+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 \
+       --glyph-names \
+       --no-hinting \
+       --layout-features='*' \
+       "$dir/font.ttf" \
+       --gids="$glyph_ids" \
+       --text="$text"
 fonttools subset \
        --glyph-names \
        --no-hinting \
        --layout-features='*' \
        "$dir/font.ttf" \
-       --glyphs="$glyph_names" \
+       --gids="$glyph_ids" \
        --text="$text"
 if ! test -s "$dir/font.subset.ttf"; then
        echo "Subsetter didn't produce nonempty subset font in $dir/font.subset.ttf" >&2