Re: lilypond-book: "external" fonts and --pdf option problem
2015-12-19 8:30 GMT+02:00 Masamichi HOSODA : >> In the case of text font, variable `font' is set to #f. >> In the case of music font, variable `font' is set to non-#f. > > I've created issue 4701. Thank you! -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
>> Thank you for finding this. I'm wondering if there is a more generic way to >> identify third-party fonts rather than hard-coding it like this? Perhaps by >> checking if the font has the LILY, LILC, and LILF subtables? I'm just >> brain-storming... > > How about following patch? > > In the case of text font, variable `font' is set to #f. > In the case of music font, variable `font' is set to non-#f. I've created issue 4701. http://sourceforge.net/p/testlilyissues/issues/4701/ https://codereview.appspot.com/284830043 ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
> Thank you for finding this. I'm wondering if there is a more generic way to > identify third-party fonts rather than hard-coding it like this? Perhaps by > checking if the font has the LILY, LILC, and LILF subtables? I'm just > brain-storming... How about following patch? In the case of text font, variable `font' is set to #f. In the case of music font, variable `font' is set to non-#f. ``` diff --git a/scm/framework-ps.scm b/scm/framework-ps.scm index 60d7bb3..f6d1700 100644 --- a/scm/framework-ps.scm +++ b/scm/framework-ps.scm @@ -246,10 +246,15 @@ footer))) (define (write-preamble paper load-fonts? port) - (define (internal-font? file-name) -(or (string-startswith file-name "Emmentaler") -(string-startswith file-name "emmentaler") -)) + (define (internal-font? font-name-filename) +(let* ((font (car font-name-filename)) + (file-name (caddr font-name-filename)) + (font-file-name (ly:find-file (format #f "~a.otf" file-name + (and font + (cff-font? font) + font-file-name + (string-contains font-file-name +(ly:get-option 'datadir) (define (load-font-via-GS font-name-filename) (define (ps-load-file file-name) @@ -272,7 +277,7 @@ (if (mac-font? bare-file-name) (handle-mac-font name bare-file-name) (cond - ((internal-font? file-name) + ((and font (cff-font? font)) (ps-load-file (ly:find-file (format #f "~a.otf" file-name ((string? bare-file-name) @@ -402,7 +407,7 @@ ((ly:get-option 'gs-load-lily-fonts) (if (or (string-contains (caddr name) (ly:get-option 'datadir)) - (internal-font? (caddr name))) + (internal-font? name)) (load-font-via-GS name) (load-font name))) (else ``` ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
Masamichi, On Thu, Dec 10, 2015 at 7:23 AM, Masamichi Hosoda [via Lilypond] < ml-node+s1069038n18463...@n5.nabble.com> wrote: > If I understand correctly, > the cause is lilypond's `-dgs-load-fonts' option > with non-emmentaler music font. > > I've reproduced the issue with the following smaller example. > ... > Of course, it has no error without `-dgs-load-fonts' option. > Here is a quick hack patch for the issue. > > ``` > --- framework-ps.scm.org 2015-09-27 21:01:25.0 +0900 > +++ framework-ps.scm 2015-12-10 22:03:53.743514600 +0900 > @@ -249,6 +249,7 @@ >(define (internal-font? file-name) > (or (string-startswith file-name "Emmentaler") > (string-startswith file-name "emmentaler") > +(string-startswith file-name "improviso") > )) > >(define (load-font-via-GS font-name-filename) > ``` > Thank you for finding this. I'm wondering if there is a more generic way to identify third-party fonts rather than hard-coding it like this? Perhaps by checking if the font has the LILY, LILC, and LILF subtables? I'm just brain-storming... Best, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/lilypond-book-external-fonts-and-pdf-option-problem-tp184556p184642.html Sent from the Bugs mailing list archive at Nabble.com. ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
Hi If I understand correctly, the cause is lilypond's `-dgs-load-fonts' option with non-emmentaler music font. I've reproduced the issue with the following smaller example. ``` $ cat foobar.ly { c'' } \paper { #(define fonts (set-global-fonts #:music "improviso" )) } $ lilypond -dgs-load-fonts foobar.ly GNU LilyPond 2.19.28 Processing `foobar.ly' Parsing... foobar.ly:1: warning: no \version statement found, please add \version "2.19.28" for future compatibility Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `/tmp/lilypond-wiLRqX'... warning: cannot embed "improviso-20"="improviso-20" Converting to `foobar.pdf'... Deleting `/tmp/lilypond-wiLRqX'... Success: compilation successfully completed $ ``` Of course, it has no error without `-dgs-load-fonts' option. Here is a quick hack patch for the issue. ``` --- framework-ps.scm.org2015-09-27 21:01:25.0 +0900 +++ framework-ps.scm2015-12-10 22:03:53.743514600 +0900 @@ -249,6 +249,7 @@ (define (internal-font? file-name) (or (string-startswith file-name "Emmentaler") (string-startswith file-name "emmentaler") +(string-startswith file-name "improviso") )) (define (load-font-via-GS font-name-filename) ``` > 2015-12-09 15:10 GMT+02:00 tisimst : >> Dmytro, >> >> Sorry for my delayed comment. I don't know what is causing this, but I've >> seen this come up before from other users. I'm excited to see you like >> Improviso! I hope we can get this figured out. > Abraham, > yes, I like it very much, THANK you :) > > When I insert some (display ...)'s into framework-ps.scm I can see > that ly:find-file fails to find font-file with --pdf option for some > reason. > > Ok, as you can see, I can be wrong! Don't mind, please :) > > Now I've simply added "fallback" workaround: > > --- framework-ps.scm.orig 2015-12-08 10:44:54.293262621 +0200 > +++ framework-ps.scm2015-12-08 12:07:52.786888984 +0200 > @@ -237,16 +237,18 @@ > (let* ((font (car font-name-filename)) > (name (cadr font-name-filename)) > (file-name (caddr font-name-filename)) > - (bare-file-name (ly:find-file file-name))) > + (bare-file-name (ly:find-file file-name)) > + (font-file-name (ly:find-file (format #f "~a.otf" file-name >(cons name > (if (mac-font? bare-file-name) > (handle-mac-font name bare-file-name) > (cond > ((internal-font? file-name) > - (ps-load-file (ly:find-file > - (format #f "~a.otf" file-name > + (ps-load-file font-file-name)) > ((string? bare-file-name) >(ps-load-file file-name)) > + ((string? font-file-name) > + (ps-load-file font-file-name)) > (else >(ly:warning (_ "cannot embed ~S=~S") name file-name) >"")) > > -- > Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
2015-12-09 15:10 GMT+02:00 tisimst : > Dmytro, > > Sorry for my delayed comment. I don't know what is causing this, but I've > seen this come up before from other users. I'm excited to see you like > Improviso! I hope we can get this figured out. Abraham, yes, I like it very much, THANK you :) When I insert some (display ...)'s into framework-ps.scm I can see that ly:find-file fails to find font-file with --pdf option for some reason. Ok, as you can see, I can be wrong! Don't mind, please :) Now I've simply added "fallback" workaround: --- framework-ps.scm.orig 2015-12-08 10:44:54.293262621 +0200 +++ framework-ps.scm2015-12-08 12:07:52.786888984 +0200 @@ -237,16 +237,18 @@ (let* ((font (car font-name-filename)) (name (cadr font-name-filename)) (file-name (caddr font-name-filename)) - (bare-file-name (ly:find-file file-name))) + (bare-file-name (ly:find-file file-name)) + (font-file-name (ly:find-file (format #f "~a.otf" file-name (cons name (if (mac-font? bare-file-name) (handle-mac-font name bare-file-name) (cond ((internal-font? file-name) - (ps-load-file (ly:find-file - (format #f "~a.otf" file-name + (ps-load-file font-file-name)) ((string? bare-file-name) (ps-load-file file-name)) + ((string? font-file-name) + (ps-load-file font-file-name)) (else (ly:warning (_ "cannot embed ~S=~S") name file-name) "")) -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
Dmytro, Sorry for my delayed comment. I don't know what is causing this, but I've seen this come up before from other users. I'm excited to see you like Improviso! I hope we can get this figured out. Best, Abraham On Tuesday, December 8, 2015, Dmytro O. Redchuk-2 [via Lilypond] < ml-node+s1069038n184579...@n5.nabble.com> wrote: > Sorry, this "patch" has huge problems .( > > 2015-12-08 11:44 GMT+02:00 Dmytro O. Redchuk <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=184579&i=0>>: > > > With this patch it looks like "it works for me". > > > > I will check more. What would I check besides of a "regular" > > (lilypond's and lilypond-book's) output generation? > > > > Please, anyone knowledgeable, review this diff and give your feedback, > > because, as usually, I don't know what I am doing. > > > > Thank you! > > > > 2015-12-08 9:57 GMT+02:00 Dmytro O. Redchuk <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=184579&i=1>>: > >> 2015-12-08 9:55 GMT+02:00 Dmytro O. Redchuk <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=184579&i=2>>: > >>> Hello, > >>> > >>> to avoid any misunderstanding with any "include"'s I've tested this > >>> issue with this source: > >> And the command was (no -I...), of course: > >> > >> $ lilypond-book --out=out [--pdf] test.lytex > >> > >>> > >>> % 8< -- > >>> \documentclass{article} > >>> \begin{document} > >>> \begin{lilypond} > >>> { c''4 } > >>> \paper { > >>> #(define fonts > >>> (set-global-fonts > >>> #:music "improviso" > >>> #:factor (/ staff-height pt 20) > >>> )) > >>> } > >>> \end{lilypond} > >>> \end{document} > >>> % 8< -- > >>> > >>> And I have the same result, attached. > >>> > >>> 2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=184579&i=3>>: > >>>> 2015-12-07 19:55 GMT+02:00 James <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=184579&i=4>>: > >>>>> Hello Dmytro, > >>>> Hello James :) > >>>> > >>>>>>> I want lilypond to engrave it with "improviso" font, > >>>>>>> https://fonts.openlilylib.org/improviso/ --- I have set it up, > it's > >>>>>>> ok. > >>>> ... and the subject of this thread is: "lilypond-book: 'external' > >>>> fonts and --pdf option problem" .) > >>>> > >>>> I have no any problem with lilypond-book and Emmentaler (lilypond's > >>>> default) font. With or without --pdf, really. > >>>> > >>>> I am sorry to be unclear. That \include imports the stylesheet for > >>>> improviso font (https://fonts.openlilylib.org/improviso/, an > alternate > >>>> font for lilypond). > >>>> > >>>> So, without --pdf I have nice result, with --pdf I have a score(s) > >>>> with "improviso-related" objects missed. > >> > >> -- > >> Dmytro O. Redchuk > > > > > > > > -- > > Dmytro O. Redchuk > > > > -- > Dmytro O. Redchuk > > ___ > bug-lilypond mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=184579&i=5> > https://lists.gnu.org/mailman/listinfo/bug-lilypond > > > -- > If you reply to this email, your message will be added to the discussion > below: > > http://lilypond.1069038.n5.nabble.com/lilypond-book-external-fonts-and-pdf-option-problem-tp184556p184579.html > To start a new topic under Bugs, email > ml-node+s1069038n58488...@n5.nabble.com > > To unsubscribe from Lilypond, click here > <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=> > . > NAML > <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://lilypond.1069038.n5.nabble.com/lilypond-book-external-fonts-and-pdf-option-problem-tp184556p184597.html Sent from the Bugs mailing list archive at Nabble.com. ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
Sorry, this "patch" has huge problems .( 2015-12-08 11:44 GMT+02:00 Dmytro O. Redchuk : > With this patch it looks like "it works for me". > > I will check more. What would I check besides of a "regular" > (lilypond's and lilypond-book's) output generation? > > Please, anyone knowledgeable, review this diff and give your feedback, > because, as usually, I don't know what I am doing. > > Thank you! > > 2015-12-08 9:57 GMT+02:00 Dmytro O. Redchuk : >> 2015-12-08 9:55 GMT+02:00 Dmytro O. Redchuk : >>> Hello, >>> >>> to avoid any misunderstanding with any "include"'s I've tested this >>> issue with this source: >> And the command was (no -I...), of course: >> >> $ lilypond-book --out=out [--pdf] test.lytex >> >>> >>> % 8< -- >>> \documentclass{article} >>> \begin{document} >>> \begin{lilypond} >>> { c''4 } >>> \paper { >>> #(define fonts >>> (set-global-fonts >>> #:music "improviso" >>> #:factor (/ staff-height pt 20) >>> )) >>> } >>> \end{lilypond} >>> \end{document} >>> % 8< -- >>> >>> And I have the same result, attached. >>> >>> 2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk : >>>> 2015-12-07 19:55 GMT+02:00 James : >>>>> Hello Dmytro, >>>> Hello James :) >>>> >>>>>>> I want lilypond to engrave it with "improviso" font, >>>>>>> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's >>>>>>> ok. >>>> ... and the subject of this thread is: "lilypond-book: 'external' >>>> fonts and --pdf option problem" .) >>>> >>>> I have no any problem with lilypond-book and Emmentaler (lilypond's >>>> default) font. With or without --pdf, really. >>>> >>>> I am sorry to be unclear. That \include imports the stylesheet for >>>> improviso font (https://fonts.openlilylib.org/improviso/, an alternate >>>> font for lilypond). >>>> >>>> So, without --pdf I have nice result, with --pdf I have a score(s) >>>> with "improviso-related" objects missed. >> >> -- >> Dmytro O. Redchuk > > > > -- > Dmytro O. Redchuk -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
With this patch it looks like "it works for me". I will check more. What would I check besides of a "regular" (lilypond's and lilypond-book's) output generation? Please, anyone knowledgeable, review this diff and give your feedback, because, as usually, I don't know what I am doing. Thank you! 2015-12-08 9:57 GMT+02:00 Dmytro O. Redchuk : > 2015-12-08 9:55 GMT+02:00 Dmytro O. Redchuk : >> Hello, >> >> to avoid any misunderstanding with any "include"'s I've tested this >> issue with this source: > And the command was (no -I...), of course: > > $ lilypond-book --out=out [--pdf] test.lytex > >> >> % 8< -- >> \documentclass{article} >> \begin{document} >> \begin{lilypond} >> { c''4 } >> \paper { >> #(define fonts >> (set-global-fonts >> #:music "improviso" >> #:factor (/ staff-height pt 20) >> )) >> } >> \end{lilypond} >> \end{document} >> % 8< -- >> >> And I have the same result, attached. >> >> 2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk : >>> 2015-12-07 19:55 GMT+02:00 James : >>>> Hello Dmytro, >>> Hello James :) >>> >>>>>> I want lilypond to engrave it with "improviso" font, >>>>>> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's >>>>>> ok. >>> ... and the subject of this thread is: "lilypond-book: 'external' >>> fonts and --pdf option problem" .) >>> >>> I have no any problem with lilypond-book and Emmentaler (lilypond's >>> default) font. With or without --pdf, really. >>> >>> I am sorry to be unclear. That \include imports the stylesheet for >>> improviso font (https://fonts.openlilylib.org/improviso/, an alternate >>> font for lilypond). >>> >>> So, without --pdf I have nice result, with --pdf I have a score(s) >>> with "improviso-related" objects missed. > > -- > Dmytro O. Redchuk -- Dmytro O. Redchuk --- framework-ps.scm.orig 2015-12-08 10:44:54.293262621 +0200 +++ framework-ps.scm2015-12-08 11:14:49.600462497 +0200 @@ -237,16 +237,16 @@ (let* ((font (car font-name-filename)) (name (cadr font-name-filename)) (file-name (caddr font-name-filename)) - (bare-file-name (ly:find-file file-name))) + (bare-file-name (ly:find-file file-name)) + (font-file-name (ly:find-file (format #f "~a.otf" file-name (cons name (if (mac-font? bare-file-name) (handle-mac-font name bare-file-name) (cond ((internal-font? file-name) - (ps-load-file (ly:find-file - (format #f "~a.otf" file-name - ((string? bare-file-name) - (ps-load-file file-name)) + (ps-load-file font-file-name)) + ((string? font-file-name) + (ps-load-file font-file-name)) (else (ly:warning (_ "cannot embed ~S=~S") name file-name) "")) ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
2015-12-08 9:55 GMT+02:00 Dmytro O. Redchuk : > Hello, > > to avoid any misunderstanding with any "include"'s I've tested this > issue with this source: And the command was (no -I...), of course: $ lilypond-book --out=out [--pdf] test.lytex > > % 8< -- > \documentclass{article} > \begin{document} > \begin{lilypond} > { c''4 } > \paper { > #(define fonts > (set-global-fonts > #:music "improviso" > #:factor (/ staff-height pt 20) > )) > } > \end{lilypond} > \end{document} > % 8< -- > > And I have the same result, attached. > > 2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk : >> 2015-12-07 19:55 GMT+02:00 James : >>> Hello Dmytro, >> Hello James :) >> >>>>> I want lilypond to engrave it with "improviso" font, >>>>> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's >>>>> ok. >> ... and the subject of this thread is: "lilypond-book: 'external' >> fonts and --pdf option problem" .) >> >> I have no any problem with lilypond-book and Emmentaler (lilypond's >> default) font. With or without --pdf, really. >> >> I am sorry to be unclear. That \include imports the stylesheet for >> improviso font (https://fonts.openlilylib.org/improviso/, an alternate >> font for lilypond). >> >> So, without --pdf I have nice result, with --pdf I have a score(s) >> with "improviso-related" objects missed. -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
Hello, to avoid any misunderstanding with any "include"'s I've tested this issue with this source: % 8< -- \documentclass{article} \begin{document} \begin{lilypond} { c''4 } \paper { #(define fonts (set-global-fonts #:music "improviso" #:factor (/ staff-height pt 20) )) } \end{lilypond} \end{document} % 8< -- And I have the same result, attached. 2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk : > 2015-12-07 19:55 GMT+02:00 James : >> Hello Dmytro, > Hello James :) > >>>> I want lilypond to engrave it with "improviso" font, >>>> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's >>>> ok. > ... and the subject of this thread is: "lilypond-book: 'external' > fonts and --pdf option problem" .) > > I have no any problem with lilypond-book and Emmentaler (lilypond's > default) font. With or without --pdf, really. > > I am sorry to be unclear. That \include imports the stylesheet for > improviso font (https://fonts.openlilylib.org/improviso/, an alternate > font for lilypond). > > So, without --pdf I have nice result, with --pdf I have a score(s) > with "improviso-related" objects missed. > > -- > Dmytro O. Redchuk -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
2015-12-07 19:55 GMT+02:00 James : > Hello Dmytro, Hello James :) >>> I want lilypond to engrave it with "improviso" font, >>> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's >>> ok. ... and the subject of this thread is: "lilypond-book: 'external' fonts and --pdf option problem" .) I have no any problem with lilypond-book and Emmentaler (lilypond's default) font. With or without --pdf, really. I am sorry to be unclear. That \include imports the stylesheet for improviso font (https://fonts.openlilylib.org/improviso/, an alternate font for lilypond). So, without --pdf I have nice result, with --pdf I have a score(s) with "improviso-related" objects missed. -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
Hello Dmytro, On 07/12/15 13:16, Dmytro O. Redchuk wrote: > 2015-12-07 15:12 GMT+02:00 Dmytro O. Redchuk : >> Hello bug squad, hello list, >> >> I've found a problem with this "book": > I am sorry, forgot to mention, > tested with 2.18.2 and 2.19.32, got the same result. > >> % test.lytex: >> % 8< >> \documentclass{article} >> \begin{document} >> \begin{lilypond} >> \include "improviso.ily" >> { c''4 } >> \end{lilypond} >> \end{document} >> % 8< >> >> I want lilypond to engrave it with "improviso" font, >> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's >> ok. >> >> Now: lilypond-book does well without --pdf option: >> >> $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out test.lytex >> $ cd out >> $ latex test && dvips -o test.ps test.dvi && ps2pdf test.ps >> >> Now I have the desired result. >> >> But it fails when I want to do it for pdflatex: >> % 8< >> $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out --pdf >> test.lytex >> >> Layout output to `b5/lily-09c4cef9.eps'... >> попередження: cannot embed "improviso-20"="improviso-20" >> Converting to `b5/lily-09c4cef9.pdf'... >> Layout output to `b5/lily-09c4cef9-1.eps'... >> попередження: cannot embed "improviso-20"="improviso-20" >> Converting to `b5/lily-09c4cef9-1.pdf'... >> Writing b5/lily-09c4cef9-systems.texi... >> Writing b5/lily-09c4cef9-systems.tex... >> Writing b5/lily-09c4cef9-systems.count... >> Success: compilation successfully completed >> Linking files... >> Compiling /home/dor/tmp/ly-test/out/test.tex... >> Writing `/home/dor/tmp/ly-test/out/test.tex'... >> % 8< >> >> Now I have pdf containing a score with no clef, key signature and notehead. >> >> I've attached png files produced by >> $ convert -density 150 -1.eps -flatten -1.png >> for both ways, with and without --pdf. >> >> Is this an issue? How to work around? >> >> Thank you! >> >> -- >> Dmytro O. Redchuk > I used your command, without the include (obviously as I don't have it) $ lilypond-book out=out --pdf test.lytex Then I cd into 'out' and run $ texi2pdf text.texi The resulting PDF shows me the clef, key signature etc. So it seems - with my very limited experience - to be something local to your environment (or perhaps your 'include'). James ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: lilypond-book: "external" fonts and --pdf option problem
2015-12-07 15:12 GMT+02:00 Dmytro O. Redchuk : > Hello bug squad, hello list, > > I've found a problem with this "book": I am sorry, forgot to mention, tested with 2.18.2 and 2.19.32, got the same result. > > % test.lytex: > % 8< > \documentclass{article} > \begin{document} > \begin{lilypond} > \include "improviso.ily" > { c''4 } > \end{lilypond} > \end{document} > % 8< > > I want lilypond to engrave it with "improviso" font, > https://fonts.openlilylib.org/improviso/ --- I have set it up, it's > ok. > > Now: lilypond-book does well without --pdf option: > > $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out test.lytex > $ cd out > $ latex test && dvips -o test.ps test.dvi && ps2pdf test.ps > > Now I have the desired result. > > But it fails when I want to do it for pdflatex: > % 8< > $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out --pdf test.lytex > > Layout output to `b5/lily-09c4cef9.eps'... > попередження: cannot embed "improviso-20"="improviso-20" > Converting to `b5/lily-09c4cef9.pdf'... > Layout output to `b5/lily-09c4cef9-1.eps'... > попередження: cannot embed "improviso-20"="improviso-20" > Converting to `b5/lily-09c4cef9-1.pdf'... > Writing b5/lily-09c4cef9-systems.texi... > Writing b5/lily-09c4cef9-systems.tex... > Writing b5/lily-09c4cef9-systems.count... > Success: compilation successfully completed > Linking files... > Compiling /home/dor/tmp/ly-test/out/test.tex... > Writing `/home/dor/tmp/ly-test/out/test.tex'... > % 8< > > Now I have pdf containing a score with no clef, key signature and notehead. > > I've attached png files produced by > $ convert -density 150 -1.eps -flatten -1.png > for both ways, with and without --pdf. > > Is this an issue? How to work around? > > Thank you! > > -- > Dmytro O. Redchuk -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
lilypond-book: "external" fonts and --pdf option problem
Hello bug squad, hello list, I've found a problem with this "book": % test.lytex: % 8< \documentclass{article} \begin{document} \begin{lilypond} \include "improviso.ily" { c''4 } \end{lilypond} \end{document} % 8< I want lilypond to engrave it with "improviso" font, https://fonts.openlilylib.org/improviso/ --- I have set it up, it's ok. Now: lilypond-book does well without --pdf option: $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out test.lytex $ cd out $ latex test && dvips -o test.ps test.dvi && ps2pdf test.ps Now I have the desired result. But it fails when I want to do it for pdflatex: % 8< $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out --pdf test.lytex Layout output to `b5/lily-09c4cef9.eps'... попередження: cannot embed "improviso-20"="improviso-20" Converting to `b5/lily-09c4cef9.pdf'... Layout output to `b5/lily-09c4cef9-1.eps'... попередження: cannot embed "improviso-20"="improviso-20" Converting to `b5/lily-09c4cef9-1.pdf'... Writing b5/lily-09c4cef9-systems.texi... Writing b5/lily-09c4cef9-systems.tex... Writing b5/lily-09c4cef9-systems.count... Success: compilation successfully completed Linking files... Compiling /home/dor/tmp/ly-test/out/test.tex... Writing `/home/dor/tmp/ly-test/out/test.tex'... % 8< Now I have pdf containing a score with no clef, key signature and notehead. I've attached png files produced by $ convert -density 150 -1.eps -flatten -1.png for both ways, with and without --pdf. Is this an issue? How to work around? Thank you! -- Dmytro O. Redchuk ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond