[Xquartz-dev] XQuartz 2.7.2_rc2

Jeremy Huddleston jeremyhu at apple.com
Sun May 13 19:30:14 PDT 2012


On May 13, 2012, at 16:45, Peter Dyballa <Peter_Dyballa at Web.DE> wrote:

>>> XQuartz 2.7.2_rc2 seems to produce a font path setting with the elements /opt/X11/share/fonts/OTF, /Library/Fonts, /System/Library/Fonts not ending with a slash and one element, "built-ins", that causes this report in Console:
>>> 
>>> 	May 14 00:19:19 sumac org.macosforge.xquartz.startx[11811]: xset:  bad font path element (#17), possible causes are:
>>> 	May 14 00:19:19 sumac org.macosforge.xquartz.startx[11811]:     Directory does not exist or has wrong permissions
>>> 	May 14 00:19:19 sumac org.macosforge.xquartz.startx[11811]:     Directory missing fonts.dir
>>> 	May 14 00:19:19 sumac org.macosforge.xquartz.startx[11811]:     Incorrect font server address or syntax
>> 
>> Which is element 17 in the list?
> 
> It's that "built-ins" element.

Really?  That's odd.  I don't think the built-ins element shouldn't trigger a message like that, and interestingly, built-ins is *forced* into the default font path if it isn't already.  Take a look at http://cgit.freedesktop.org/xorg/xserver/tree/dix/dixfonts.c

Furthermore, I really don't see how "built-ins" is landing in the list we hand to xset.  Take a look at /opt/X11/lib/X11/xinit/xinitrc.d/10-fontdir.sh(*).  built-ins is not in the list that we hand to xset, and I don't see why there should be 17 elements.  Are you doing something special with your font path in a custom file in ~/.xinitrc.d or /opt/X11/lib/X11/xinit/xinitrc.d?

I tried adding built-ins in a call to xset and didn't see a problem:

$ xset fp= "/opt/X11/lib/X11/fonts/misc/,/opt/X11/lib/X11/fonts/TTF/,/opt/X11/lib/X11/fonts/OTF,/opt/X11/lib/X11/fonts/Type1/,/opt/X11/lib/X11/fonts/75dpi/:unscaled,/opt/X11/lib/X11/fonts/100dpi/:unscaled,/opt/X11/lib/X11/fonts/75dpi/,/opt/X11/lib/X11/fonts/100dpi/,built-ins"


*: /opt/X11/lib/X11/xinit/xinitrc.d $ cat 10-fontdir.sh 
if [ -x /opt/X11/bin/xset ] ; then
        fontpath="/opt/X11/lib/X11/fonts/misc/,/opt/X11/lib/X11/fonts/TTF/,/opt/X11/lib/X11/fonts/OTF,/opt/X11/lib/X11/fonts/Type1/,/opt/X11/lib/X11/fonts/75dpi/:unscaled,/opt/X11/lib/X11/fonts/100dpi/:unscaled,/opt/X11/lib/X11/fonts/75dpi/,/opt/X11/lib/X11/fonts/100dpi/"

        [ -e "$HOME"/.fonts/fonts.dir ] && fontpath="$fontpath,$HOME/.fonts"
        [ -e "$HOME"/Library/Fonts/fonts.dir ] && fontpath="$fontpath,$HOME/Library/Fonts"
        [ -e /Library/Fonts/fonts.dir ] && fontpath="$fontpath,/Library/Fonts"
        [ -e /System/Library/Fonts/fonts.dir ] && fontpath="$fontpath,/System/Library/Fonts"

        /opt/X11/bin/xset fp= "$fontpath"
        unset fontpath
fi




More information about the Xquartz-dev mailing list