]> 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)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 17 Jul 2009 07:48:11 +0000 (00:48 -0700)
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

index 0a1cfc241abb6bd98c2f296c5f36aead860bbd97..306f05a5f2717fb02a099cbb1ccf8d390dd6f2b8 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`