Setting Up Frodo as a Font Server


To enable other HP computers to run Mentor Graphics software, Mentor's fonts must be made available to those computers. This is done by setting up a computer (in this case, frodo) to act as a font server.

The first step was to start xfs, which was dont with /sbin/set_parms font_c-s and then choose Font Server. This started a daemon that looked something like: /usr/bin/X11/xfs -port 7000 -daemon -quiet_if_addrinuse

This set up frodo as a font server for its default fonts, but not all the Mentor Graphics fonts. To include other fonts, xfs needed to be configured. The standard files relating to xfs are /etc/rc.config.xfs and /sbin/init.d/xfs. The first of these is just a flag that says that xfs will run each time the machine boots and the second is the script that actually starts xfs. A third file was then created in /usr/sbin/xfs, called xfs.config. The contents of this file are:
# more xfs.config

# font server configuration file

# by Mary Heintz 11/22/99

#where to look for fonts
catalogue=/net/altera/mentor/max2/fonts/,
/net/edg/disk3/anacad/genie_falcon/v3.2_2.2/data/registry/icons_hp700/,
/net/mgc/mgc_C.2/pkgs/boldbro.hpu/fonts/,
/net/mgc/mgc_C.2/pkgs/base.hpu/fonts/,
/net/mgc/mgc_C.2/registry/fonts/,
/usr/lib/X11/fonts/mgc_fonts/

The file /sbin/init.d/xfs was then modified to include -config /usr/sbin/xfs/xfs.config in the start section. This referenced the config file that pointed out to the program where the Mentor Graphics fonts were. Along with the xfs configuration, the Mentor Graphics documentation mentioned a command called mgc_font_collect that gathered all the Mentor fonts and put them in a single location. On frodo the command mgc_font_collect -v /usr/lib/X11/fonts/mgc_fonts was run.

To then use the fonts made available, the user at the client computer has to issue the command xset fp+ tcp/frodo:7000.