Re: Setting Default Font


Subject: Re: Setting Default Font
From: Kevin Vajk (kvajk@ricochet.net)
Date: Sat Apr 15 2000 - 16:28:39 CDT


On Sat, 15 Apr 2000, Colin Mattoon wrote:

> So, my question is: Will the ability to change the fonts, when version
> 1.0 is released, allow AbiWord to operate across a network on Xterminals,
> without the additional requirement of either installing AbiWord fonts on
> the Xterminal, or mounting them as NFS files?

You can already do it, if you don't mind hacking around a little.
(I assume you're running abiword on a Linux box, displaying to
remote X servers, right?)

Here's what you do, on the Linux box from which abiword is launched:

Edit /etc/X11/fs/config. In the "catalogue" list, add the directory
/usr/share/abisuite/fonts (or wherever your abiword fonts are installed)
to the list (be careful about where the trailing commas do and don't go).

Edit whatever script starts the font server "xfs" on your system.
(If you're not running the font server, edit some rc script to
start it at boot time.) The important thing is that your font
server needs to be listening on the network, so you do *not* want
it to have a "-port -1" command-line option.
A specific example: on redhat, edit /etc/rc.d/init.d/xfs and
remove (in both places) the string "-port -1". Then restart
xfs with "/etc/rc.d/init.d/xfs stop ; /etc/rc.d/init.d/xfs start".
(Note that "restart" will *not* work here.)

Edit the abiword script ("vi `which abiword`"). Beneath the line:
    xset fp+ $ABISUITE_FONT_HOME 1>/dev/null 2>/dev/null
add:
    xset q 2>/dev/null | grep -q -- tcp/`hostname` || \
        xset fp+ tcp/`hostname`:7100 1>/dev/null 2>/dev/null

Voila.

- Kevin Vajk
  <kvajk@ricochet.net>



This archive was generated by hypermail 2b25 : Sat Apr 15 2000 - 16:31:24 CDT