From e7bfecb77d5b1809cc6b37f29f7629f5b48fe3ea Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Fri, 20 Mar 2009 09:56:21 +0100 Subject: [PATCH] Make fc-match prefer Type 1 over TTF for NCSB files This fixes font selection on some Debian systems with a Canorus package that installs NCSB in TTF format, which makes fc-match prefer TTF over Type 1 (reported by David Kastrup). Setting the foundry field to "urw" restores fc-match selection of Type 1. (cherry picked from commit a9fecbead73824c3f02364be830980e4e2b4470c) --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 0a1cfc241a..306f05a5f2 100644 --- a/configure.in +++ b/configure.in @@ -73,7 +73,7 @@ if test "$NCSB_DIR" != "" ; then else if test "$FCMATCH" != ""; then for style in Roman Italic "Bold Italic" Bold; do - NCSB_FILE=`$FCMATCH --verbose "Century Schoolbook L:style=$style" | grep 'file:' | grep -v "\.ttf"` + NCSB_FILE=`$FCMATCH --verbose "Century Schoolbook L:style=$style:foundry=urw" | grep 'file:' | grep -v "\.ttf"` NCSB_FILE=`echo $NCSB_FILE | sed 's/^.*"\(.*\)".*$/\1/g'` NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE` -- 2.39.2