Re: Fwd: [Thinstation-general] Fonts in own custom packages
Daniel Meyer <
eagle@...>
2006-08-02 12:02:31 GMT
> Actually I'm about to face the same problem. I've made a package with ms
> tt
> corefonts for web browser use and these too needs to get into the font
> path.
> In my sketch package I've simply added a line to XF86Config.Xorg.tpl and
> included this alternative file to the package. You could do similar,
> however
> then your package will destroy mine and vice versa...
And that would be... bad.
> I wonder if it's possible to add a bit of sed magic to the init script.
> Will
> have to think about this a bit.
What about this (taken from packages/x-common/etc/init.d/x):
X_FONT="$X_PATH/lib/X11/fonts"
if [ -n "$SCREEN_X_FONT_SERVER" ]; then
if [ "$X_SERVER" != "Xvesa" ]; then
X_CMD="$X_CMD -fp $X_FONT/misc,tcp/$SCREEN_X_FONT_SERVER"
else
X_CMD="$X_CMD -fp tcp/$SCREEN_X_FONT_SERVER"
fi
else
X_CMD="$X_CMD -fp $X_FONT/misc"
[ -e $X_FONT/75dpi/fonts.dir ] && X_CMD="$X_CMD,$X_FONT/75dpi"
[ -e $X_FONT/100dpi/fonts.dir ] && X_CMD="$X_CMD,$X_FONT/100dpi"
fi
This is where the magic happens. Not sure why there is the 100dpi line
anyway, but what about changing the second else part (when no font server
is used) to:
else
X_CMD="$X_CMD -fp "
for DIR in `find /usr/X11R6/lib/X11/fonts/ -type d`
do
[ -e $DIR/fonts.dir ] && X_CMD="$X_CMD,$DIR"
done
fi
Written from memory, so it might just not work and surely can be optimized...
Danny
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV