[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Re: Why is it _still_ so freaking hard to get info with images?

From: John Mandereau
Subject: [PATCH] Re: Why is it _still_ so freaking hard to get info with images?
Date: Tue, 17 Mar 2009 09:36:33 +0100
User-agent: Thunderbird (X11/20090105)

David Kastrup wrote:
So it would appear to be a problem that fc-match first finds the true
type fonts installed by Canorus, and then this first match is
subsequently thrown away by grep -v.

So I think you need to figure out how to tell fc-match to prefer Type1
over TrueType, or how to make it list all matches rather than a single
one.  Weeding out the Truetype when it has been listed _instead_ rather
than in addition to the Type1 fonts will not do the trick.

I haven't investigated far enough to be able to force Fontconfig to prefer TTF over Type 1, so I can't reproduce the problem you describe. Does the attached patch help on your system? At least it doesn't break font selection on my Fedora 9 system.

diff --git a/ b/
index d8f1199..e27d828 100644
--- a/
+++ b/
@@ -73,7 +73,7 @@ if test "$NCSB_DIR" != "" ;  then
   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:fontformat=Type 1" | grep 'file:' | grep -v "\.ttf"`
       NCSB_FILE=`echo $NCSB_FILE | sed 's/^.*"\(.*\)".*$/\1/g'`
       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/" $NCSB_FILE`

reply via email to

[Prev in Thread] Current Thread [Next in Thread]