[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [PATCH] kdebase for 'startkde'
From:       James Richard Tyrer <tyrerj () acm ! org>
Date:       2003-03-29 4:10:37
[Download RAW message or body]

I would like to suggest the attached patch.

The reason is that this code never worked and it has now been made obsolete by FontConfig.

There is one remaining issue for KDE.

Fonts are installed in: "$KDEDIR/share/fonts".  These do need to be available to X11 and 
FontConfig.  The solution I used was to make a link: "$KDEDIR/share/fonts => /uar/share/fonts". 
  On some systems these directories are the same and the link is unnecessary.  I suggest that 
installation of kdebase should make this link if necessary.  FontConfig would find the fonts 
there except that I had to ungzip them for it to find them.  This directory (/usr/share/fonts/) 
should be in the X11 FontPath.

If other KDE applications put fonts various places, these directory trees will have to be added 
to the FontConfig configuration file: "/etc/fonts/fonts.conf" which is XML, and to X11 as well, 
but I haven't seen any -- and remember that the old code only works for BIT MAPPED fonts.

--
JRT

["startkde.jrt.patch" (text/plain)]

--- kdebase/startkde.old	2003-03-29 03:30:24.000000000 +0000
+++ kdebase/startkde	2003-03-29 03:34:14.000000000 +0000
@@ -43,72 +43,7 @@
 kdehome=$HOME/.kde
 test -n "$KDEHOME" && kdehome=`echo "$KDEHOME"|sed "s,^\~/,$HOME/,"`
 
-# Activate the kde font directories.
-#
-# There are 4 directories that may be used for supplying fonts for KDE.
-#
-# There are two system directories. These belong to the administrator.
-# There are two user directories, where the user may add her own fonts.
-#
-# The 'override' versions are for fonts that should come first in the list,
-# i.e. if you have a font in your 'override' directory, it will be used in
-# preference to any other.
-#
-# The preference order looks like this:
-# user override, system override, X, user, system
-#
-# Where X is the original font database that was set up before this script
-# runs.
-
-usr_odir=$kdehome/share/fonts/override
-usr_fdir=$kdehome/share/fonts
-if test -n "$KDEDIRS"; then
-  kdedirs_first=`echo "$KDEDIRS"|sed -e 's/:.*//'`
-  sys_odir=$kdedirs_first/share/fonts/override
-  sys_fdir=$kdedirs_first/share/fonts
-else
-  sys_odir=$KDEDIR/share/fonts/override
-  sys_fdir=$KDEDIR/share/fonts
-fi
-
-# We run mkfontdir on the user's font dirs (if we have permission) to pick
-# up any new fonts they may have installed. If mkfontdir fails, we still
-# add the user's dirs to the font path, as they might simply have been made
-# read-only by the administrator, for whatever reason.
-
-test -d "$usr_odir" && (mkfontdir "$usr_odir" ; xset +fp "$usr_odir")
-test -d "$sys_odir" && xset +fp "$sys_odir"
-test -d "$usr_fdir" && (mkfontdir "$usr_fdir" ; xset fp+ "$usr_fdir")
-test -d "$sys_fdir" && xset fp+ "$sys_fdir"
-
-#
-# Add any user-installed font directories to the X font path
-kde_fontsdir=$kdehome/share/fonts
-kde_fontpaths=$kde_fontsdir/fontpaths
-
-if test -r "$kde_fontpaths" ; then
-    savifs=$IFS
-    IFS=
-    for fpath in `grep -v '^[ 	]*#' < "$kde_fontpaths"` ; do
-        if test -s "$fpath"/fonts.dir ; then
-            xset fp+ "$fpath"
-        fi
-    done
-    IFS=$savifs
-fi
-
-# Ask X11 to rebuild its font list.
-xset fp rehash
 
-#
-# Get Ghostscript to look into user's KDE fonts dir for additional Fontmap
-if test -n "$GS_LIB" ; then
-    GS_LIB=$kde_fontsdir:$GS_LIB
-    export GS_LIB
-else
-    GS_LIB=$kde_fontsdir
-    export GS_LIB
-fi
 
 # Link "tmp" resource to directory in /tmp
 # Creates a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic