Re: change the font for all markups

2015-02-13 Thread ole

Am 12.02.2015 um 20:53 schrieb tisimst tisimst.lilyp...@gmail.com:

 Ole Schmidt wrote
 Am 12.02.2015 um 11:50 schrieb Richard Shann lt;
 
 richard@.plus
 
 gt;:
 
 On Thu, 2015-02-12 at 12:20 +0100, Ole Schmidt wrote:
 Am 12.02.2015 um 12:04 schrieb Noeck lt;
 
 noeck.marburg@
 
 gt;:
 
 Hi,
 
 this works for me (taken from Frescobaldi Insert  Document fonts …):
 
 \paper {
 fonts = #
 (make-pango-font-tree
  Times New Roman
  Nimbus Sans
  Luxi Mono
 (/ (* staff-height pt) 2.5))
 }
 { a^\markup { Test \typewriter code } }
 
 Of course, the fonts must be installed.
 
 replace Times New Roman with Luxi Mono or whatever typerwriter font
 you have, the what would have been in Times will come out in Mono...
 
 Richard
 
 that makes sense and works!
 
 thanks!
 
 
 
 HTH,
 Joram
 
 ___
 lilypond-user mailing list
 
 
 lilypond-user@
 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 Thanks, but I'am looking for a solution where the \typewriter in the
 markup is not neccecary.
 I have lots of markups and don't want to change them all manually.
 
 
 ___
 lilypond-user mailing list
 
 
 lilypond-user@
 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 
 
 ___
 lilypond-user mailing list
 
 lilypond-user@
 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 Ole,
 
 While it works, the effect is that the typewriter font becomes your MAIN
 font (since that is what LilyPond uses the \roman font-family for). If you
 are okay with that, great. If this is not desired, you can do:
 
  \override Score.TextScript.font-family = #'typewriter
 
 This only affects \markups and other simple text.
 
 HTH,
 Abraham
 
 
Thanks for that!

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


Re: change the font for all markups

2015-02-12 Thread tisimst
Ole Schmidt wrote
 Am 12.02.2015 um 11:50 schrieb Richard Shann lt;

 richard@.plus

 gt;:
 
 On Thu, 2015-02-12 at 12:20 +0100, Ole Schmidt wrote:
 Am 12.02.2015 um 12:04 schrieb Noeck lt;

 noeck.marburg@

 gt;:
 
 Hi,
 
 this works for me (taken from Frescobaldi Insert  Document fonts …):
 
 \paper {
 fonts = #
 (make-pango-font-tree
   Times New Roman
   Nimbus Sans
   Luxi Mono
  (/ (* staff-height pt) 2.5))
 }
 { a^\markup { Test \typewriter code } }
 
 Of course, the fonts must be installed.
 
 replace Times New Roman with Luxi Mono or whatever typerwriter font
 you have, the what would have been in Times will come out in Mono...
 
 Richard
 
 that makes sense and works!
 
 thanks!
 
 
 
 HTH,
 Joram
 
 ___
 lilypond-user mailing list
 

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 Thanks, but I'am looking for a solution where the \typewriter in the
 markup is not neccecary.
 I have lots of markups and don't want to change them all manually.
 
 
 ___
 lilypond-user mailing list
 

 lilypond-user@

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

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

Ole,

While it works, the effect is that the typewriter font becomes your MAIN
font (since that is what LilyPond uses the \roman font-family for). If you
are okay with that, great. If this is not desired, you can do:

  \override Score.TextScript.font-family = #'typewriter

This only affects \markups and other simple text.

HTH,
Abraham



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/change-the-font-for-all-markups-tp171730p171759.html
Sent from the User mailing list archive at Nabble.com.

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


Re: change the font for all markups

2015-02-12 Thread Noeck
Hi,

this works for me (taken from Frescobaldi Insert  Document fonts …):

\paper {
  fonts = #
  (make-pango-font-tree
Times New Roman
Nimbus Sans
Luxi Mono
   (/ (* staff-height pt) 2.5))
}
{ a^\markup { Test \typewriter code } }

Of course, the fonts must be installed.

HTH,
Joram

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


Re: change the font for all markups

2015-02-12 Thread Ole Schmidt
Am 12.02.2015 um 12:04 schrieb Noeck noeck.marb...@gmx.de:

 Hi,
 
 this works for me (taken from Frescobaldi Insert  Document fonts …):
 
 \paper {
  fonts = #
  (make-pango-font-tree
Times New Roman
Nimbus Sans
Luxi Mono
   (/ (* staff-height pt) 2.5))
 }
 { a^\markup { Test \typewriter code } }
 
 Of course, the fonts must be installed.
 
 HTH,
 Joram
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


Thanks, but I'am looking for a solution where the \typewriter in the markup is 
not neccecary.
I have lots of markups and don't want to change them all manually.


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


change the font for all markups

2015-02-12 Thread Ole Schmidt
Hi,

What is the way to change the font of all markups into the \typewriter font?
I've tried what is suggested in the manual:

 (#(define fonts
(make-pango-font-tree Times New Roman
  Nimbus Sans
  Luxi Mono
  (/ staff-height pt 20)))

the markups font did not change.



thanks,

ole







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


Re: change the font for all markups

2015-02-12 Thread Noeck
Hi Ole,

by the way: your example also works for me if you omit the first parenthesis:
#(define fonts
instead of
(#(define fonts

  (#(define fonts
 (make-pango-font-tree Times New Roman
   Nimbus Sans
   Luxi Mono
   (/ staff-height pt 20)))

Cheers,
Joram

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


Re: change the font for all markups

2015-02-12 Thread Noeck
Hi Ole,

 Thanks, but I'am looking for a solution where the \typewriter in the markup is
not neccecary.
 I have lots of markups and don't want to change them all manually.

then I misunderstood your question. The three fonts in this command are
serif (default), sans-serif (\sans) and mono-space (\typewriter).
So this will set all fonts to the typewriter (note the change in the first 
font):

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

If you have Luxi Mono installed, it should work with it just the same (instead
of Ubuntu Mono).

HTH,
Joram


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


Re: change the font for all markups

2015-02-12 Thread Richard Shann
On Thu, 2015-02-12 at 12:20 +0100, Ole Schmidt wrote:
 Am 12.02.2015 um 12:04 schrieb Noeck noeck.marb...@gmx.de:
 
  Hi,
  
  this works for me (taken from Frescobaldi Insert  Document fonts …):
  
  \paper {
   fonts = #
   (make-pango-font-tree
 Times New Roman
 Nimbus Sans
 Luxi Mono
(/ (* staff-height pt) 2.5))
  }
  { a^\markup { Test \typewriter code } }
  
  Of course, the fonts must be installed.

replace Times New Roman with Luxi Mono or whatever typerwriter font
you have, the what would have been in Times will come out in Mono...

Richard


  
  HTH,
  Joram
  
  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 Thanks, but I'am looking for a solution where the \typewriter in the markup 
 is not neccecary.
 I have lots of markups and don't want to change them all manually.
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user



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


Re: change the font for all markups

2015-02-12 Thread Ole Schmidt






Am 12.02.2015 um 11:50 schrieb Richard Shann rich...@rshann.plus.com:

 On Thu, 2015-02-12 at 12:20 +0100, Ole Schmidt wrote:
 Am 12.02.2015 um 12:04 schrieb Noeck noeck.marb...@gmx.de:
 
 Hi,
 
 this works for me (taken from Frescobaldi Insert  Document fonts …):
 
 \paper {
 fonts = #
 (make-pango-font-tree
   Times New Roman
   Nimbus Sans
   Luxi Mono
  (/ (* staff-height pt) 2.5))
 }
 { a^\markup { Test \typewriter code } }
 
 Of course, the fonts must be installed.
 
 replace Times New Roman with Luxi Mono or whatever typerwriter font
 you have, the what would have been in Times will come out in Mono...
 
 Richard

that makes sense and works!

thanks!
 
 
 
 HTH,
 Joram
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 Thanks, but I'am looking for a solution where the \typewriter in the markup 
 is not neccecary.
 I have lots of markups and don't want to change them all manually.
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 


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