From 67d005f66078ecba0386d05b749bad579c79bc80 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 9 Feb 2025 06:59:48 +0000 Subject: [PATCH] [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. --- test/draw/hb-draw-compare | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/draw/hb-draw-compare b/test/draw/hb-draw-compare index 8277ef34f..987614d0d 100755 --- a/test/draw/hb-draw-compare +++ b/test/draw/hb-draw-compare @@ -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"