|
|
@ -41,6 +41,7 @@ if test $? != 0; then |
|
|
|
echo "hb-shape failed." >&2 |
|
|
|
echo "hb-shape failed." >&2 |
|
|
|
exit 2 |
|
|
|
exit 2 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
glyph_names=`echo "$text" | $hb_shape $options --no-clusters --no-positions "$fontfile" | sed 's/[][]//g; s/|/,/g'` |
|
|
|
|
|
|
|
|
|
|
|
cp "$fontfile" "$dir/font.ttf" |
|
|
|
cp "$fontfile" "$dir/font.ttf" |
|
|
|
fonttools subset \ |
|
|
|
fonttools subset \ |
|
|
@ -48,6 +49,7 @@ fonttools subset \ |
|
|
|
--no-hinting \ |
|
|
|
--no-hinting \ |
|
|
|
--layout-features='*' \ |
|
|
|
--layout-features='*' \ |
|
|
|
"$dir/font.ttf" \ |
|
|
|
"$dir/font.ttf" \ |
|
|
|
|
|
|
|
--glyphs="$glyph_names" \ |
|
|
|
--text="$text" |
|
|
|
--text="$text" |
|
|
|
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 |
|
|
|