bug-lilypond
[Top][All Lists]
Advanced

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

enable OpenType features globally


From: Malte Meyn
Subject: enable OpenType features globally
Date: Thu, 12 Jul 2018 07:39:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi list,

I could find neither a post on this list (or on devel) nor an issue on the tracker but I cannot imagine this has never been asked for anywhere, did I miss something?

Currently, it’s only possible to \override the font-features list for every single grob (okay, you can use something like snippet 443 http://lsr.di.unimi.it/LSR/Item?id=443 for automization) and for every single markup. It would be nice if you could set font features when selecting the font in the \paper block:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paper {
  #(define fonts
    (set-global-fonts
     #:music "cadence"
     #:brace "cadence"
     #:roman "Vollkorn:liga=0&dlig&zero"
     #:factor (/ staff-height pt 20)))
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

This would set Vollkorn as roman font, disable liga (for example ff ligature), and enable dlig (for example st ligature) and slashed zero. The suggested syntax using : and & is how it’s done in LibreOffice.

Cheers,
Malte



reply via email to

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