[hb-draw-compare] Default to ot shaper

Since there's no 'ft' shaper, hence --font-funcs2=ft was failing.

Still using auto for --face-loader, since we support ot, ft, and coretext
there.
This commit is contained in:
Behdad Esfahbod committed 2025-03-02 17:00:17 -07:00
1 parent d3e7f916e1
commit 67d005f660
1 file changed
+2 -7
+2 -7
View File
@@ -16,7 +16,7 @@ font_size=upem
features=
variations=
face_loader=auto
shaper=auto
shaper=ot
font_funcs1=ot
font_funcs2=coretext
clear1=false
@@ -243,11 +243,6 @@ for font_funcs in "$font_funcs1" "$font_funcs2"; do
else
this_face_loader=$face_loader
fi
if test "$shaper" == auto; then
this_shaper=$font_funcs
else
this_shaper=$shaper
fi
funcs_prefix="$output_dir/$font_funcs$flavor"
mkdir -p "$funcs_prefix"
@@ -287,7 +282,7 @@ test "x$font_funcs1" == x || test "x$font_funcs2" == x && exit 0
diff="$output_dir/diff$flavor"
rm -f "$diff"
> "$diff"
ln -f -s "diff$flavor" "$output_dir/diff"
test "x$flavor" == x || ln -f -s "diff$flavor" "$output_dir/diff"
$quiet || echo "Comparing SVGs into '$diff'..." >&2
funcs1_prefix="$output_dir/$font_funcs1$flavor"
funcs2_prefix="$output_dir/$font_funcs2$flavor"