]> git.donarmstrong.com Git - lilypond.git/commitdiff
Make fc-match prefer Type 1 over TTF for NCSB files
authorJohn Mandereau <john.mandereau@gmail.com>
Fri, 20 Mar 2009 08:56:21 +0000 (09:56 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Fri, 20 Mar 2009 08:56:21 +0000 (09:56 +0100)
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.

configure.in

index d8f1199f23311d847de6c213b59771d0f8a78a5c..d45c4c0a44ebe77acf8871f7d0dc3a037d52783b 100644 (file)
@@ -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`