Installation of Feta fonts
Introduction
When printing music in
classical notation, Kguitar needs access to a font containing the
required musical symbols. Currently, only the PostScript version
of Lilypond's feta 19 font is used. This font must be accessible to the X
server (either directly or by using the font server) and Qt itself must be
able to find the actual font file (feta19.pfa). Unfortunately, the way Qt's
PostScript printer driver searches for font files is not documented.
The following instructions work for Qt 3.0.5 on RedHat
Linux 8.0.
Copy font files
This assumes that the font "feta 19" will be stored in an empty directory
called /usr/X11R6/lib/X11/fonts/local.
- cp feta19.pfa /usr/X11R6/lib/X11/fonts/local
- cd /usr/X11R6/lib/X11/fonts/local
- ls -x *.pfa | make-font-dir.py > fonts.scale
- mkfontdir
These steps copy the font file and create two files fonts.dir and fonts.scale
both containing two lines:
1
feta19.pfa -lilypond-feta-regular-r-19--0-0-0-0-p-0-adobe-fontspecific
Note: feta19.pfa can be found in lilypond-1.4.11-1.i386.rpm.
Note: make-font-dir can be found in lilypond-1.6.5.tar.gz.
See http://ftp.cs.uu.nl/pub/GNU/LilyPond for Lilypond downloads.
Update configuration files
- Add a line "/usr/X11R6/lib/X11/fonts/local" to the catalogue section
in /etc/X11/fs/config.
- Add a line "<dir>/usr/X11R6/lib/X11/fonts/local</dir>"
to the font directory list
in /etc/fonts/fonts.conf.
After the first step, the font feta19 is available to X11 applications,
as is shown by the output of "fslsfonts -server :7100 -fn "*feta*"",
which shows the following line:
-lilypond-feta-regular-r-19--0-0-0-0-p-0-adobe-fontspecific
After the second step, the font will also be found by KDE/Qt applications,
such as KcharSelect or Kword.