@end example
-@item pktrace, [OPTIONAL], needed for generating PostScript Type1
+@item pktrace 1.0 or newer, [OPTIONAL], needed for generating PostScript Type1
fonts. Get it from @uref{http://www.cs.uu.nl/~hanwen/pktrace/}. You
will need to install some additional packages to get pktrace to work.
accessed directly using text markup such as
@code{g^#'(music "scripts-segno")}, see @ref{Text markup}.
-@lilypondfile{feta16.ly}
+@lilypondfile{feta16list.ly}
# strange shell, this C
set datadir="@datadir@"
-if ( $?GS_FONTPATH ) then
- setenv GS_FONTPATH "$datadir/fonts/afm:$datadir/fonts/type1:$GS_FONTPATH"
- else
- setenv GS_FONTPATH "$datadir/fonts/afm:$datadir/fonts/type1"
- endif
if ( $?GS_LIB ) then
setenv GS_LIB "$datadir/ps:$GS_LIB"
else
setenv TEXMF "{$datadir,"`kpsexpand \$TEXMF`"}"
unset noglob
+# Add all available TeX Type1 fonts (including Feta) to Ghostscript:
+if ( $?GS_FONTPATH ) then
+ setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`:$GS_FONTPATH"
+ else
+ setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`
+ endif
datadir=`echo "@datadir@" | sed 's!//!/!g'`
-# For direct ps output fonts
-GS_FONTPATH="$datadir/fonts/afm:$datadir/fonts/type1:"${GS_FONTPATH:=""}
-
# For direct ps output: ps/lilyponddefs.ps
GS_LIB="$datadir/ps:"${GS_LIB:=""}
# LILYPONDPREFIX="$datadir"
# export LILYPONDPREFIX
+# For direct ps output fonts. Add all available TeX Type1 fonts
+GS_FONTPATH=`kpsewhich -expand-path=\$T1FONTS`:${GS_FONTPATH:=""}
+
+
+
export GS_LIB GS_FONTPATH TEXMF
##
## todo: this also depends on .tfm, FIXME.
$(outdir)/%.afm $(outdir)/%.tex $(outdir)/%.dep: $(outdir)/%.log
- $(PYTHON) $(buildscript-dir)/mf-to-table.py --package=$(topdir) --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --afm $(outdir)/$(<F:.log=.afm) --tex $(outdir)/$(<F:.log=.tex) --ly $(outdir)/$(<F:.log=.ly) $<
+ $(PYTHON) $(buildscript-dir)/mf-to-table.py --package=$(topdir) --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --afm $(outdir)/$(<F:.log=.afm) --tex $(outdir)/$(<F:.log=.tex) --ly $(outdir)/$(<F:.log=list.ly) $<
local-clean:
rm -f mfplain.mem mfplain.log
(string-append
"/" command
" { /"
- (car name-mag)
+ (capitalize-font-name (car name-mag))
" findfont "
"20 " (ly-number->string (cdr name-mag)) " mul "
"output-scale div scalefont setfont } bind def "
"\n"))
+;; Ugh, the Bluesky type1 fonts for computer modern use capitalized
+;; postscript font names.
+(define (capitalize-font-name name)
+ (if (equal? (substring name 0 2) "cm")
+ (string-upcase name)
+ name))
+
(define (beam width slope thick)
(string-append
(numbers->string (list slope width thick)) " draw_beam" ))