[Xquartz-dev] The 2.1.0 package and Apple System Fonts

Jeremy Huddleston jeremyhu at berkeley.edu
Fri Dec 7 22:23:57 PST 2007


Yes, xfontsel shows the X server's available fonts.  fontconfig is a  
clientside API for rendering fonts.  /etc/fonts isn't part of  
fontconfig as we Apple distributes.  Maybe it was made by macports or  
fink.  Look in /usr/X11/lib/X11/fonts for configuration and beware of  
fontconfig conflicts when using macports and (I assume) fink (see my  
previous post re: macports apps).
	
On Dec 2, 2007, at 12:06, Merle Reinhart wrote:

> I thought about that as I did have some of the font/X11 stuff from  
> fink (though this didn't help add fonts like it did with Tiger).
>
> However, if looks like they are all using /usr/X11/bin:
>
> [LeoMacPro:~/Desktop] merle% which fc-cache
> /usr/X11/bin/fc-cache
> [LeoMacPro:~/Desktop] merle% which fc-match
> /usr/X11/bin/fc-match
> [LeoMacPro:~/Desktop] merle% which fc-cat
> /usr/X11/bin/fc-cat
> [LeoMacPro:~/Desktop] merle% which fc-list
> /usr/X11/bin/fc-list
>
>
> Interestingly, fc-cache doesn't seem to be using /etc/fonts.
>
> [LeoMacPro:~/Desktop] merle% sudo fc-cache -vf
> /usr/share/fonts: skipping, no such directory
> /usr/X11R6/lib/X11/fonts: caching, 0 fonts, 12 dirs
> /usr/X11R6/lib/X11/fonts/100dpi: caching, 398 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/75dpi: caching, 398 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/OTF: caching, 23 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/Speedo: caching, 0 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/TTF: caching, 23 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/Type1: caching, 29 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/conf.avail: caching, 0 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/conf.d: caching, 0 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/cyrillic: caching, 0 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/encodings: caching, 0 fonts, 1 dirs
> /usr/X11R6/lib/X11/fonts/encodings/large: caching, 0 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/misc: caching, 55 fonts, 0 dirs
> /usr/X11R6/lib/X11/fonts/util: caching, 0 fonts, 0 dirs
> /Users/merle/.fonts: skipping, no such directory
> /System/Library/Fonts: caching, 81 fonts, 0 dirs
> /Library/Fonts: caching, 316 fonts, 0 dirs
> /usr/X11/var/cache/fontconfig: cleaning cache directory
> /Users/merle/.fontconfig: not cleaning unwritable cache directory
> fc-cache: succeeded
>
>
>
> So, it is including /System/Library/Fonts and /Library/Fonts, but  
> when I then run xfontsel after restarting X11, I don't see any of  
> those fonts in the list (see attached image).
>
>
>
> <Picture 2.png>
>
>
>
> Am I being dense and missing something obvious here?
>
> Thanks,
>
> Merle
>
>
>
>
>
>
> On Dec 2, 2007, at 2:42 PM, Jeremy Huddleston wrote:
>
>> Can you type 'which fc-cache' ? Do you have one from fink or  
>> macports?  Try the full path to /usr/X11/bin/fc-cache .  it  
>> shouldn't be using /etc/fonts
>>
>> --Jeremy
>>
>> On Dec 2, 2007, at 10:15, Merle Reinhart wrote:
>>
>>> The other thing I noticed when I was poking around to see if I  
>>> could figure out what was going on is the commands fc-cat, fc-list  
>>> and fc-match all are looking for the now nonexistent /etc/fonts/ 
>>> fonts.conf file.
>>>
>>>
>>> [LeopardAlBook:~] merle% fc-match
>>> Fontconfig error: Cannot load config file "/etc/fonts/fonts.conf"
>>> Fontconfig error: Cannot load default config file
>>> [LeopardAlBook:~] merle% fc-cat
>>> Fontconfig error: Cannot load config file "/etc/fonts/fonts.conf"
>>> Fontconfig error: Cannot load default config file
>>> /usr/share/fonts: No such file or directory
>>> [LeopardAlBook:~] merle% fc-list
>>> Fontconfig error: Cannot load config file "/etc/fonts/fonts.conf"
>>> Fontconfig error: Cannot load default config file
>>>
>>>
>>> Merle
>>>
>>>
>>>
>>> On Dec 2, 2007, at 12:35 PM, Merle Reinhart wrote:
>>>
>>>> I was noticing that one of the things 2.1.0 is supposed to fix is  
>>>> to include /System/Library/Fonts and /Library/Fonts.  I can see  
>>>> the changes in the fs config file and fc-cache sees the  
>>>> directories.
>>>>
>>>> However, when I run xfontsel, it does not appear to see any of  
>>>> the Apple system fonts.  Adding fonts to X11 has always been  
>>>> black magic to me so I'm not sure if I'm just not doing something  
>>>> that I should be or if this functionality isn't working as  
>>>> expected?
>>>>
>>>> Thanks,
>>>>
>>>> Merle
>>>>
>>>>
>>>> _______________________________________________
>>>> Xquartz-dev mailing list
>>>> Xquartz-dev at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
>>>
>>> _______________________________________________
>>> Xquartz-dev mailing list
>>> Xquartz-dev at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
>>
>
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/xquartz-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3040 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20071207/df223010/smime.bin


More information about the Xquartz-dev mailing list