Re: Setting font families for entire document in LilyPond version 2.18.2.

2016-12-21 Thread Thomas Morley
2016-12-21 18:44 GMT+01:00 Mirosław Doroszewski
<miroslaw.doroszew...@gmail.com>:
> Setting font families for entire document in LilyPond version 2.18.2.
>
> 1. I have put solution to template which has been not in the same
> directory, according to manuals:

Nope, the manuals don't include wrong comments.
You are in guile-syntax, there you have to comment with semicolon

>
> \paper {
>   #(define fonts
> (make-pango-font-tree "Times New Roman" % roman
>   "Nimbus Sans" % sans
>   "Luxi Mono"   % typewriter
> (/ staff-height pt 20)))
> }
>
> 2. Effect has been for template file:
>
> GUILE signaled an error for the expression beginning here
> #
>   (define fonts

The whole error-message gives the correct hint:

error: GUILE signaled an error for the expression beginning here
  #
   (define fonts
Unbound variable: %


> 3. I have put the solution inside a piece, not in template, and effect
> was perfect.

 Only without %-comment

> 4. I have put the solution to template which has been in the same
> directory, and effect was perfect, too.

 Only without %-comment

> 5. So, bug is this: setting font families for entire document does not
> work when template is not in the same directory.

No bug, but user-error with comments.

-Harm

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Setting font families for entire document in LilyPond version 2.18.2.

2016-12-21 Thread Mirosław Doroszewski
Setting font families for entire document in LilyPond version 2.18.2.

1. I have put solution to template which has been not in the same
directory, according to manuals:

\paper {
  #(define fonts
(make-pango-font-tree "Times New Roman" % roman
  "Nimbus Sans" % sans
  "Luxi Mono"   % typewriter
(/ staff-height pt 20)))
}

2. Effect has been for template file:

GUILE signaled an error for the expression beginning here
#
  (define fonts

3. I have put the solution inside a piece, not in template, and effect
was perfect.
4. I have put the solution to template which has been in the same
directory, and effect was perfect, too.
5. So, bug is this: setting font families for entire document does not
work when template is not in the same directory.
6. It is important, because entire document, like books, can have meny
pieces (i.e. 500, like in song books).
7. So, please, find a solution to put templates in any directory for
setting entire document font families.

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Setting font families for entire document in LilyPond version 2.18.2.

2016-12-20 Thread Simon Albrecht

Hi Mirosław,

On 20.12.2016 20:25, Mirosław Doroszewski wrote:

Setting font families for entire document is not possible in template
added to document with \include.


Yes, it is. Just use something like this in your \include file:

\paper {
  fonts = #(make-pango-font-tree
"Linux Libertine O"
"Ubuntu"
"Ubuntu Mono"
(/ (* staff-height pt) 2.5))
}

and be sure to include the file _after_ using #(set-global-staff-size #!!#).

Best, Simon

PS. Maybe ask on the lilypond-u...@gnu.org list first, if you’re not 
completely sure the feature is missing.


___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Setting font families for entire document in LilyPond version 2.18.2.

2016-12-20 Thread Alexander Kobel

Hi Miroslaw,

not sure if I understand correctly what you mean.
It is perfectly possible to write a file CustomTemplate.ly with a 
content like that:


\paper  {
  #(define fonts
(make-pango-font-tree "Times New Roman"
  "Nimbus Sans,Nimbus Sans L"
  "Luxi Mono"
  (/ staff-height pt 20)))
}

and include it with the command you mentioned. For reference on the 
command used herein, see


http://lilypond.org/doc/v2.18/Documentation/notation/fonts#entire-document-fonts

If you need further adjustments, e.g. for the font size of the lyrics, 
you can also have global layout blocks in that file:


\layout {
  \context {
\Lyrics
\override LyricText.font-size = #0
  }
}

or similar overrides.


HTH,
Alexander


On 2016-12-20 20:25, Mirosław Doroszewski wrote:

Setting font families for entire document in LilyPond version 2.18.2.

Setting font families for entire document is not possible in template
added to document with \include. If is many documents in a book, there
is necessary to set font families in each document separately. But
this solution not always working. And if there is 500 documents in a
song book?
So, please, make solution: setting font families be possible by adding
single template with \include to document.
For instance:

\version "2.18.2"
\include "CustomTemplate.ly"
{...}

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond



___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Setting font families for entire document in LilyPond version 2.18.2.

2016-12-20 Thread Mirosław Doroszewski
Setting font families for entire document in LilyPond version 2.18.2.

Setting font families for entire document is not possible in template
added to document with \include. If is many documents in a book, there
is necessary to set font families in each document separately. But
this solution not always working. And if there is 500 documents in a
song book?
So, please, make solution: setting font families be possible by adding
single template with \include to document.
For instance:

\version "2.18.2"
\include "CustomTemplate.ly"
{...}

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond