jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
55 stars 11 forks source link

pass notation fonts to LilyPond #171

Open uliska opened 6 years ago

uliska commented 6 years ago

This is explicitly not for the upcoming release.

It would be nice to be able to pass a notation font to LilyPond (which is possible since LilyPond 2.19.12). Of course it's the user's responsibility to have that font properly installed.

One possible issue to consider is that (currently) notation fonts can only be set together with the text fonts, i.e. there can only be one invocation that sets both text and notation fonts. This basically means that an option notation-font will only work together with pass-fonts.

An alternative approach would be to use the notation-fonts openLilyLib package. While this would obviously add OLL as a dependency the nice thing is that notation-fonts implicitly loads style-sheets that are fine-tuned to the different notation fonts. (openLilyLib could open up quite a range of further options, and it could be discussed at some point if it would be worth supporting it.)

jperon commented 5 years ago

About supporting openLilyLib, a good approach IMHO would be like in commit 0833f78a1e484a5f5807b665643b30f59bc97d05: load needed functionality on-demand when needed, and send back an error message if it isn't available.