From 4e899293d7f7bb0a67b094402fad7db55169acec Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 10 Feb 2008 02:04:16 -0800 Subject: Apple: Cleaned up font path setting and added font caching to xinitrc --- xinitrc.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'xinitrc.cpp') diff --git a/xinitrc.cpp b/xinitrc.cpp index c44e0fd..01fbf17 100644 --- a/xinitrc.cpp +++ b/xinitrc.cpp @@ -87,17 +87,14 @@ XCOMM This is the fallback case if nothing else is executed above #ifdef __APPLE__ +[ -x /usr/X11/bin/font_cache.sh ] && /usr/X11/bin/font_cache.sh + if [ -x /usr/X11/bin/xset ] ; then fontpath="/usr/X11/lib/X11/fonts/misc/,/usr/X11/lib/X11/fonts/TTF/,/usr/X11/lib/X11/fonts/OTF,/usr/X11/lib/X11/fonts/Type1/,/usr/X11/lib/X11/fonts/75dpi:unscaled/,/usr/X11/lib/X11/fonts/100dpi/:unscaled,/usr/X11/lib/X11/fonts/75dpi:unscaled/,/usr/X11/lib/X11/fonts/100dpi/:unscaled" - if [ -d "$HOME/Library/Fonts" ] ; then - if [ ! -e $HOME/Library/Fonts/fonts.dir ] ; then - [ -x /usr/X11/bin/mkfontdir ] && mkfontdir $HOME/Library/Fonts - [ -x /usr/X11/bin/mkfontscale ] && mkfontscale $HOME/Library/Fonts - fi - [ -e $HOME/Library/Fonts/fonts.dir ] && fontpath="$fontpath,$HOME/Library/Fonts" - fi - + [ -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 /Library/Fonts/fonts.dir ] && fontpath="$fontpath,/Library/Fonts" [ -e /System/Library/Fonts/fonts.dir ] && fontpath="$fontpath,/System/Library/Fonts" -- cgit v1.2.1