[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Oct 26 18:50:12 UTC 2017


 test/shaping/record-test.sh |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 729c9e13355eefafdc0fdef9aa68bd792ca4dba4
Author: David Corbett <corbett.dav at husky.neu.edu>
Date:   Thu Oct 26 10:29:28 2017 -0400

    Include all relevant glyphs in the subsetted font

diff --git a/test/shaping/record-test.sh b/test/shaping/record-test.sh
index d7c0d6d5..9a71cc87 100755
--- a/test/shaping/record-test.sh
+++ b/test/shaping/record-test.sh
@@ -41,6 +41,7 @@ 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'`
 
 cp "$fontfile" "$dir/font.ttf"
 fonttools subset \
@@ -48,6 +49,7 @@ fonttools subset \
 	--no-hinting \
 	--layout-features='*' \
 	"$dir/font.ttf" \
+	--glyphs="$glyph_names" \
 	--text="$text"
 if ! test -s "$dir/font.subset.ttf"; then
 	echo "Subsetter didn't produce nonempty subset font in $dir/font.subset.ttf" >&2


More information about the HarfBuzz mailing list