Subject: Re: TT font question
To: None <port-mac68k@netbsd.org>
From: gabriel rosenkoetter <gr@eclipsed.net>
List: port-mac68k
Date: 10/03/2006 18:54:59
--XLR3b0NScy54cC0V
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, thelarsons3@cox.net 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?

Ahem:

  % cat /usr/pkgsrc/x11/xfstt/DESCR
  Xfstt is an X11 Font Server for TrueType fonts.
 =20
  TT fonts are generally regarded to be the best scalable
  fonts for low resolution devices like displays.
 =20
  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
  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
  $NetBSD: MESSAGE,v 1.7 2005/09/28 14:15:50 rillig Exp $
 =20
  To use xfstt, you will need to perform the following steps:
 =20
  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
 =20
          ${PREFIX}/lib/X11/fonts/TTF/
 =20
  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
 =20
          xfstt=3DYES
 =20
  3. Start xfstt by issuing the command
 =20
          /etc/rc.d/xfstt start
 =20
  4. Tell your X11 server about the new font service
 =20
          xset fp+ unix/:7101
 =20
     or add the new fontpath directly to the X11 config file, e.g.  Section
     "Files", in XFree86 configuration file
 =20
          FontPath "unix/:7101"
  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D

(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,
pkgsrc/fonts/*ttf.

> 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.

--=20
gabriel rosenkoetter
gr@eclipsed.net

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFFIupD9ehacAz5CRoRAo7qAKCJ1Y+rE6mGokrl9Qex36iaNkjmkgCgrZcC
nuUdTqWXh72MIVwxMC3rNi4=
=UNm/
-----END PGP SIGNATURE-----

--XLR3b0NScy54cC0V--