Hi list,

I wanted to try Knut’s advice from the Gotlandstoner thread (https://lists.gnu.org/archive/html/lilypond-user/2017-09/msg00013.html) but the -b option doesn’t seem to work with different notation fonts; Ghostscript fails and outputs a PDF without any fonts (it doesn’t even contain TeXGyreSchola). Minimal example:

%% BEGIN bigtest.ly %%

\version "2.19.65"

\paper {
  #(define fonts
     (set-global-fonts
      #:music "haydn"
      #:factor (/ staff-height pt 20)))
}

\relative {
  c' d e f g a b c
}

%% END bigtest.ly %%

The Haydn fonts are installed correctly, without the -b option there’s no problem. Any ideas why -b doesn’t work?

Attached you find the differing parts of the logs of
        lilypond -b -lDEBUG bigtest.ly 2> bigtest.log
and
        lilypond    -lDEBUG bigtest.ly 2> test.log
Layout output to `/tmp/lilypond-aGUGcH'...
Initializing embedded CFF font list.
Embedding CFF font `TeXGyreSchola-Regular'.
[PATH_TO_LP/usr/share/lilypond/current/fonts/otf/texgyreschola-regular.otf]
[PATH_TO_LP/usr/share/lilypond/current/ps/encodingdefs.ps]
[PATH_TO_LP/usr/share/lilypond/current/ps/music-drawing-routines.ps]
[PATH_TO_LP/usr/share/lilypond/current/ps/lilyponddefs.ps]
Converting to `bigtest.pdf'...
Invoking `gs -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -dSubsetFonts=false -sDEVICE=pdfwrite -dAutoRotatePages=/None -sOutputFile=bigtest.pdf -c.setpdfwrite -f/tmp/lilypond-aGUGcH'...

GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in magfonthaydn-20mXVo
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1983   1   3   %oparray_pop   1982   1   3   %oparray_pop   1966   1   3   %oparray_pop   1852   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1211/1684(ro)(G)--   --dict:0/20(G)--   --dict:1273/1518(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 262963
GPL Ghostscript 9.21: Unrecoverable error, exit code 1
warning: `(gs -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -dSubsetFonts=false -sDEVICE=pdfwrite -dAutoRotatePages=/None -sOutputFile=bigtest.pdf -c.setpdfwrite -f/tmp/lilypond-aGUGcH)' failed (256)

PATH_TO_LP/usr/share/lilypond/current/scm/lily.scmfatal error: failed files: "bigtest.ly"
Layout output to `/tmp/lilypond-AbrJ4c'...
Initializing embedded CFF font list.
Embedding CFF font `TeXGyreSchola-Regular'.
[PATH_TO_LP/usr/share/lilypond/current/fonts/otf/texgyreschola-regular.otf]
[PATH_TO_LP/usr/share/lilypond/current/ps/music-drawing-routines.ps]
[PATH_TO_LP/usr/share/lilypond/current/ps/lilyponddefs.ps]
Converting to `bigtest.pdf'...
Invoking `gs -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite -dAutoRotatePages=/None -sOutputFile=bigtest.pdf -c.setpdfwrite -f/tmp/lilypond-AbrJ4c'...

GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Deleting `/tmp/lilypond-AbrJ4c'...
]PATH_TO_LP/usr/share/lilypond/current/scm/lily.scm
Success: compilation successfully completed
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to