mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
FreeBSD: scan /usr/local/lib/X11/fonts/ for fontpath
This commit is contained in:
parent
c3cd844df6
commit
d31fc60fbf
1 changed files with 24 additions and 1 deletions
|
@ -472,7 +472,7 @@ SetKeyboardMap()
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(CSRG_BASED) || defined(linux)
|
||||
#if defined(linux)
|
||||
#ifdef cpp_Xsetup
|
||||
if [ "$DTXSERVERLOCATION" != "remote" ]; then
|
||||
fontpath=
|
||||
|
@ -495,3 +495,26 @@ SetKeyboardMap()
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(CSRG_BASED)
|
||||
#ifdef cpp_Xsetup
|
||||
if [ "$DTXSERVERLOCATION" != "remote" ]; then
|
||||
fontpath=
|
||||
FONTLIB=/usr/local/lib/X11/fonts
|
||||
for i in misc 75dpi 100dpi Speedo Type1 PJE
|
||||
do
|
||||
if [ -f $FONTLIB/$i/fonts.dir ]; then
|
||||
if [ ! -z "$fontpath" ]; then
|
||||
fontpath=$fontpath,$FONTLIB/$i/
|
||||
else
|
||||
fontpath=$FONTLIB/$i/
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -z "$fontpath" ]; then
|
||||
$XDIR/xset fp+ $fontpath
|
||||
fi
|
||||
fi
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue