Re: Override music fonts for specific glyphs

2018-04-13 Thread Noeck


Am 12.04.2018 um 22:35 schrieb foxfanfare:
> Is this exactly how this function works?

Yes, you explained exactly what I meant. You get multiple fonts as you
described but you cannot add multiple fonts in one function call.

Joram

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


Re: Override music fonts for specific glyphs

2018-04-12 Thread foxfanfare
Noeck wrote
> Hi,
> 
> I also asked that some time ago. I can’t find the thread (I am
> notoriously bad at finding anything on the list archive).
> I use it for the clef.
> 
> This should work:

Oh thanks! I also searched the forum about this subject and yet cannot
succeed to find this thread!
I was stuck almost all the afternoon on this problem...

Too bad this isn't in the documentation because it is very useful!


Noeck wrote
>   % you can add more new names here if you need them

This I don't understand. The fonction can only take 2 arguments right? One
for the music, the other for the brace but you can create several separate
instances? For exemple:

  #(add-music-fonts fonts 'number1 "emmentaler" "emmentaler"
 feta-design-size-mapping (/ staff-height pt 20))

  #(add-music-fonts fonts 'number2 "profondo" "profondo"
 feta-design-size-mapping (/ staff-height pt 20))

and then you call:

[...].font-family = #'number1   or   [...].font-family = #'number2

Is this exactly how this function works?




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: Override music fonts for specific glyphs

2018-04-12 Thread Thomas Morley
2018-04-12 21:23 GMT+02:00 Noeck :
> Hi,
>
> I also asked that some time ago. I can’t find the thread (I am
> notoriously bad at finding anything on the list archive).
> I use it for the clef.

Probably:
http://lilypond.1069038.n5.nabble.com/Feedback-Request-for-Music-Fonts-tt167354.html#none

Cheers,
  Harm

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


Re: Override music fonts for specific glyphs

2018-04-12 Thread Noeck
Hi,

I also asked that some time ago. I can’t find the thread (I am
notoriously bad at finding anything on the list archive).
I use it for the clef.

This should work:


\paper {
  #(add-music-fonts fonts 'myfont "gonville" "emmentaler"
 feta-design-size-mapping (/ staff-height pt 20))
  % the 1st font "gonville" is the music font
  % the 2nd font "emmentaler" is the brace font
  % you can add more new names here if you need them
}

\layout {
  \context {
\Staff
% here you can use whatever you have defined above
\override Clef.font-family = #'myfont
  }
}

{ a-"test" }


Cheers,
Joram

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


Override music fonts for specific glyphs

2018-04-12 Thread foxfanfare
Hi everyone,

I can't figure out very clearly how music fonts work in LilyPond. I
installed properly several fonts which I can use easily with the command:

\paper {
  #(define fonts
(set-global-fonts
 …
))

That's fine, but is it possible then to change the font for a specific
glyph? I tried this code:

\version "2.19.80"

\relative c' {
  \time 3/4
  
  \override Staff.TimeSignature.font-name = #"Times New Roman"
  c d e
  \override Score.Clef.font-size = #4
  \clef tenor
  f g a 
  \override Score.Clef.font-name = #"Gonville"
  \clef treble
  b c d
  \revert Score.Clef.font-name
  \revert Score.Clef.font-size
  e f g \break
  
  
 
 
 
  c,,-^ d-^ e-^
  \override Score.Script.font-size = #4
  f-^ g-^ a-^   
  \override Score.Script.font-name = #"beethoven"  
  b-^ c-^ d-^  
  \revert Score.Script.font-name
  \revert Score.Script.font-size  
  b-^ c-^ d-^  
}

\layout {
  ragged-right = ##t
}

***

but as you see, the font-name works only for the TimeSignature and neither
for the clef nor the script.

I am curently using the Profondo font, but I found an error in the dmarcato
glyph which (I don't know why) isn't the same than in Bravura and is
obviously curiously mirrored (see attachments). The bravura glyph is the one
used in Elaine Gould's book for this articulation (she also suggest thicker
font for the down marcato glyph!)

profondo-dmarcato.png
  

That's why I wanted to alterate the font for the scripts (or better, only
for the marcato glyph) and use for instance the default font.

Oh, and I try replacing the d-marcato glyph using FontForge but it is very
laborious since the numerous fonts size (and file) for the same font, I
couldn't achieve it easily and I'm not sure of this way of dealing with my
problem...



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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