On 5/18/2014 5:06 PM, Erik van der Wal wrote:
>> Now "fc-match Helvetica" returns the correct font, but xcircuit still
>> uses Vera Sans instead of Helvetica (I tell from the shape of 'e'
>> character).
> I force fontconfig to give me exactly the same font as I ask for. To trust 
> the replacements given by fontconfig, disable the check in cairo.c
>
> FcPatternGetString(matched, FC_FAMILY, 0, &matched_family);
> /////////// if (!strcmp(matched_family, fi->family)) {
>    fi->font_face = cairo_ft_font_face_create_for_pattern(matched);
>    /* printf("Found exact font for %s\n", fi->family); */
> /////////// }
>
>> The latest patch seems to use Helvetica/Arial, but the + and - signs are
>> replaced by squares. Screenshot is at http://flic.kr/p/nnLsV8
> Plus and minus signs are from the symbol font.
>
> I would just download the (free) URW fonts from somewhere 
> (ghostscript-fonts-std-8.11.tar.gz) and install them.
>
> Erik.
Erik,

Thanks for the tip about the Symbol font. I had neglected to check that.
fontconfig was picking up the Windows Symbol font which is a very
different font.

I did have the ghostscript fonts installed, but again not in fontconfig
search path. So I added a second conf for that at
/etc/fonts/conf.d/02-ghostscript.conf:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--Add ghostscript font dir -->
  <dir>/usr/share/ghostscript/fonts</dir>
</fontconfig>

Now the fonts are as expected, but before your latest
cairo_fonts.patch.gz. After applying the patch the Symbol font is still
incorrect.

I am a happy camper now.

Thanks,
Satya


_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to