$ fc-match Sans
DejaVuSans.ttf: "DejaVu Sans" "Book"

Aargh, I'm stupid, Liam! Somehow I managed to skip over the key piece of information you supplied in your brief response. Here's what I get on my Mac:

% fc-match Sans
Vera.ttf: "Bitstream Vera Sans" "Roman"

Obviously this explains a lot. Looking around on the Mac I was able to 'find' these:

% sudo find / -name '*Vera*' -print
/opt/X11/share/fonts/TTF/Vera.ttf
/opt/X11/share/fonts/TTF/VeraBd.ttf
... lots more Vera*.ttf files in /opt/X11/share/fonts/TTF
...
... but also a bunch of other stuff here:
/System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/Resources/FontInfo/BitstreamVeraSans-Bold.fontinfo
/System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/Resources/FontInfo/BitstreamVeraSans-BoldOblique.fontinfo
...

I suspect, but can't be sure, that the latter files were part of the MacOS install. The ttf files in /opt/X11/share/fonts/TTF almost certainly came from either a MacPorts package install (which could have been either from the gtk3 package or any one of a number of X11-related packages) or from an XQuartz install (Mountain Lion no longer has integrated X11, you must install XQuartz separately), and I have no idea which.

Anyway, I tar'd up all the DejaVu*ttf files from /usr/share/fonts on my CentOS 6 machine and dumped them into /opt/X11/share/fonts on the Mac, but my app does not seem able to find them there, and fc-match still says that Sans is aliased to the Bitstream Vera font. It would seem that there is still some other piece of font lookup information that is missing. Any idea on what that might be?

Thanks!

Roger
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to