jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 12 forks source link

Make lyluatex work with LilyPond 2.25.4 and newer #309

Closed lemzwerg closed 1 year ago

lemzwerg commented 1 year ago

I need the following patch to make lyluatex work with LilyPond 2.25.4 and newer:

--- a/lyluatex.lua      2023-04-15 15:47:58.940686029 +0200
+++ b/lyluatex.lua      2023-04-13 20:15:13.447331896 +0200
@@ -855,11 +855,9 @@
 function Score:ly_fonts()
     if self['pass-fonts'] then
         return string.format([[
-#(define fonts
-    (make-pango-font-tree "%s"
-                          "%s"
-                          "%s"
-                          (/ staff-height pt 20)))
+fonts.roman = "%s"
+fonts.sans = "%s"
+fonts.typewriter = "%s"
 ]],
             self.rmfamily,
             self.sffamily,

It would be nice if lyluatex could handle this automatically.

jperon commented 1 year ago

@lemzwerg Thank you for the report. May you please check that fix-309 branch works for you ? As LilyPond 2.25.4 isn’t available yet in binary form on the site, I couldn’t check myself.

lemzwerg commented 1 year ago

It works fine, thanks!