| # Copyright (c) 2017 The OTS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| test "x$top_srcdir" = x && top_srcdir=. |
| test "x$top_builddir" = x && top_builddir=. |
| # Usage: ./test_fuzzed_fonts.sh [ttf_or_otf_file_name] |
| BASE_DIR=$top_srcdir/tests/fonts |
| CHECKER=$top_builddir/ots-testfuzz$EXEEXT |
| if [ ! -x "$CHECKER" ] ; then |
| echo "$CHECKER is not found." |
| # No font file is specified. Apply this script to all TT/OT files under the |
| # Recursively call this script. |
| FONTS=$(find $BASE_DIR -type f -name '*tf' -o -name '*tc' -o -name '*woff*') |
| echo "$FAILS fonts failed." |
| echo "Usage: $0 [ttf_or_otf_file_name]" |
| # Check the font file using ots-fuzzer. |