]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/font-size-engraver.cc
* lily/beam.cc (least_squares): Add comment.
[lilypond.git] / lily / font-size-engraver.cc
index 863bc6bf11d01c9a60c2ed4adde50b1e99f51820..c72b06a85fd9822bed9653d633b2f182c459bbd1 100644 (file)
@@ -25,6 +25,10 @@ Font_size_engraver::Font_size_engraver ()
 
 }
 
+/*
+  TODO: use fontSize = NUMBER as a scaling constant: find the closest
+  integer design size, and use magnification to do the fractional bit.
+*/
 void
 Font_size_engraver::acknowledge_grob (Grob_info gi)
 {
@@ -32,9 +36,9 @@ Font_size_engraver::acknowledge_grob (Grob_info gi)
 
   if (gh_number_p (sz)
       && gh_scm2int (sz)
-      && !gh_number_p (gi.grob_l_->get_grob_property ("font-relative-size")))
+      && !gh_number_p (gi.grob_->get_grob_property ("font-relative-size")))
     {
-      gi.grob_l_->set_grob_property ("font-relative-size", sz);
+      gi.grob_->set_grob_property ("font-relative-size", sz);
     }
 }