lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the default dynamics font


From: David Stocker
Subject: Re: Changing the default dynamics font
Date: Mon, 24 May 2010 12:26:05 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4

Hi Martin,

\version "2.13.21"

dynamics = {
  \relative c' {
    c8\mf\< d e f g\!\ff\> f e d c1\!\mf
  }
}

\score {
  \new Staff {
    \dynamics
    \override DynamicText #'font-name = "Linux Libertine O Bold Italic"
    \dynamics
  }
}

The exact name (as your system knows it) of the font is important. FontMatrix can that.

Hope that helps.

David

On 05/24/2010 11:01 AM, Martin Hiendl wrote:
Sorry for being unclear.

So I would like to change the typeface of dynamics like \p, \mf, etc.

The command

  
\override DynamicText #'font-name = "Linux Libertine"
      
did work, because all my dynamics now have the plain Linux Libertine typeface. The problem is that they have their regular fontstyle, whereas I would like them to be bold and italic.

The manual says that editing font-name in that way overrides all settings in font-series or font-shape. This is why this part of the command

  
   \override DynamicText #'font-series = #'bold
    
did not affect the result.

So my question is whether there is another way to change the default typeface of the dynamics where I can specify the font-styles like bold and italic.

Best
Martin

On May 24, 2010, at 1:30 AM, Xavier Scheuer wrote:

  
2010/5/24 Martin Hiendl <address@hidden> :

    
Hi!

I hope this hasn't been brought up yet.

I tried to change the default dynamics font with the following
command:

\score {

 \new Staff \with {
   \override DynamicText #'font-name = "Linux Libertine"
   \override DynamicText #'font-series = #'bold
   \override DynamicText #'font-size = #1
}
      
CORRECTION

Maybe it did not work because DynamicText are engraved by
"New_dynamic_engraver", which belong to Voice and not Staff...

And try adding a # before the font name.

 \override DynamicText #'font-name = #"Linux Libertine"

BTW are you sure the font name is correct (checking with
"lilypond -dshow-available-fonts x")?

Cheers,
Xavier

--
Xavier Scheuer <address@hidden>

    

_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

  

-- 
David Stocker
804-598-3762
http://notesettersinc.com

Attachment: dynafont.ly
Description: Text Data

Attachment: dynafont.preview.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]