Subject: Re: TT font question
To: None <>
From: gabriel rosenkoetter <>
List: port-mac68k
Date: 10/03/2006 18:54:59
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 03, 2006 at 04:34:23PM -0400, wrote:
> Can anyone give me a pointer as to how to install TT fonts in
> NetBSD 2.1?  I found some documentation online, but it appears
> out-of-date.  I don't have the commands mentioned (mkfontscale?),
> nor can I find where to get them from.  The docs said something
> about having to configure Xft as well?


  % cat /usr/pkgsrc/x11/xfstt/DESCR
  Xfstt is an X11 Font Server for TrueType fonts.
  TT fonts are generally regarded to be the best scalable
  fonts for low resolution devices like displays.
  Examples where good scalable fonts improve the visual
  quality considerably are netscape(tm), gimp and java(tm).

The fonts themselves are not, necessarily, freely redistributable.
So, you know:

  % cat /usr/pkgsrc/x11/xfstt/MESSAGE
  $NetBSD: MESSAGE,v 1.7 2005/09/28 14:15:50 rillig Exp $
  To use xfstt, you will need to perform the following steps:
  1. Install TrueType fonts (e.g. fonts/ms-ttf, or other packages providing
     TrueType fonts from the fonts category), or copy your other TrueType
     fonts into
  2. In case you don't have PKG_RCD_SCRIPTS set in your /etc/mk.conf, copy
     ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/xfstt to /etc/rc.d/xfstt and add
     the following
     line into your /etc/rc.conf
  3. Start xfstt by issuing the command
          /etc/rc.d/xfstt start
  4. Tell your X11 server about the new font service
          xset fp+ unix/:7101
     or add the new fontpath directly to the X11 config file, e.g.  Section
     "Files", in XFree86 configuration file
          FontPath "unix/:7101"

(which you'll see again after installing the package, of course.)

> I've done this on Linux, and while not as easy as a Mac (or even
> Windows) it's not too bad.  I expect it to be pretty similar here,
> even though the commands seem a bit different.

( cd $PKGSRC/x11/xfstt && su root -c make install )

Or, grab the binary packages and just su root -c pkg_add <package>.

Same directions for pkgsrc/fonts/ms-ttf, or, really,

> I hope I don't need to compile anything, because my build box
> became nonresponsive (to the network) within the past few days, so
> I don't know when I'll be able to do that again.

Um. Well, pkgsrc does "build" things. You could use binary packages,
of course. If memory serves, releng builds those too periodically.
But... is there really some reason not to have a C compiler and
pkgsrc on the target system?

> Fortunately I got the last batch of packages copied to my webserver
> before this happened.

Well, there you go then.

gabriel rosenkoetter

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.2.2 (FreeBSD)