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)
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`