Setting font-features globally?

2023-02-27 Thread John Zaitseff
Hello, I have a fairly large collection of LilyPond music scores that I have entered over the years. Now that I have access to the rather nice Adobe Minion 3 set of fonts, I would like to use them for my scores. I have successfully included the following in my stylesheet: \paper { #(def

Re: Discourse

2023-02-27 Thread Andrew Bernard
Not sure where my brain has been holidaying lately - I had the idea you can't import mbox format lists into Discourse and even gave what I thought were reasons you can't. This it totally wrong. Discourse does have an import mechanism for loading mailing lists. So I think I'll run up a Discours

Re: Setting font-features globally?

2023-02-27 Thread Valentin Petzel
Hello John, you can do this by setting this in the default props: \paper { #(define fonts (set-global-fonts #:roman "Linux Libertine" #:factor (/ staff-height pt 20) )) text-font-defaults = #(assoc-set! text-font-defaults 'font-features '("smc

Re: Setting font-features globally?

2023-02-27 Thread Jean Abou Samra
Le lundi 27 février 2023 à 13:53 +0100, Valentin Petzel a écrit : > Hello John, > > you can do this by setting this in the default props: > > \paper { >     #(define fonts >     (set-global-fonts >     #:roman  "Linux Libertine" >     #:factor (/ staff-height pt 20

Re: Setting font-features globally?

2023-02-27 Thread Jean Abou Samra
Le lundi 27 février 2023 à 16:52 +1100, John Zaitseff a écrit : > Hello, > > I have a fairly large collection of LilyPond music scores that I > have entered over the years.  Now that I have access to the rather > nice Adobe Minion 3 set of fonts, I would like to use them for my > scores.  I

Re: Setting font-features globally?

2023-02-27 Thread Werner LEMBERG
>> In short, is there a way to set "ss03" globally? > > This should do: > > ``` > \paper { > text-font-defaults.font-features = #'("ss03") > } > ``` I think it would be very beneficial to add documentation for `text-font-defaults` to the NR. https://gitlab.com/lilypond/lilypond/-/issues/654

Re: Setting font-features globally?

2023-02-27 Thread Valentin Petzel
Hello Jean, yes, did not think about that. Doing is your way is better anyway ... Regarding the \with-font-feature-Part: I think I had some discussion on the list wrt this a long time ago. Would you think it would make sense to provide this (or a similar function) to Lilypond? Usually people ac

Re: Setting font-features globally?

2023-02-27 Thread Jean Abou Samra
 > Le 27 févr. 2023 à 16:32, Valentin Petzel a écrit : > Would you think it would make sense to provide > this (or a similar function) to Lilypond? Yes, I do. No need to invent syntax/convenience for less frequently used stuff though (the cost of memorizing it outweighs the cost of typing m

Re: Discourse

2023-02-27 Thread Knute Snortum
On Mon, Feb 27, 2023 at 1:59 AM Andrew Bernard wrote: > > So I think I'll run up a Discourse server and load a substantial number > of years of this list and then we can play with it to see. That will be > better than me just talking about it. > Great idea! Although I've gotten used to it, using

Re: Setting font-features globally?

2023-02-27 Thread John Zaitseff
Hi, everyone (especially Jean), Thanks for all your replies -- most helpful. > > In short, is there a way to set "ss03" globally? > > This should do: > > ``` > \paper { > text-font-defaults.font-features = #'("ss03") > } > ``` This was exactly what I was looking for -- I've tested it and it wo

Re: Setting font-features globally?

2023-02-27 Thread Valentin Petzel
Hello John, this property is not documented (yet, but Werner just opened an issue for this), so the only real way to understand this behaviour is to look at the right places in the source code. So let’s look in the source code where font-features is actually used: You’ll arrive at Text_interfa

Re: Setting font-features globally?

2023-02-27 Thread Valentin Petzel
Okay, I will create a MR these days. But just gotta point out: You yourself argued back then: \removeFontFeature sounds more like a specialized use case though. I'd add just \with-font-feature ... Note that prefixing a feature to omit with an "-" is not a new syntax. It is done e.g. with fontspe

Re: Setting font-features globally?

2023-02-27 Thread Jean Abou Samra
> Le 27 févr. 2023 à 19:53, Valentin Petzel a écrit : > > Okay, I will create a MR these days. But just gotta point out: You yourself > argued back then: \removeFontFeature sounds more like a > specialized use case though. I'd add just \with-font-feature ... Mailing list archives are compro

OneStaff and instrument names

2023-02-27 Thread Nuno Trocado
Is it possible to have instrument names when using OneStaff? Nothing appears: \version "2.23.5" \new Score { \new OneStaff \with { instrumentName = "Violin" } { \new Staff { c d e f \stopStaff } \new RhythmicStaff { \omit Score.TimeSignature c4 8 8 } }

Re: OneStaff and instrument names

2023-02-27 Thread Pierre Perol-Schneider
Hi Nuno, This should work: \layout { \context { \OneStaff \consists Instrument_name_engraver } } HTH, cheers, Pierre Le mar. 28 févr. 2023 à 02:36, Nuno Trocado a écrit : > Is it possible to have instrument names when using OneStaff? Nothing > appears: > > \version "2.23.5" > > \n