]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lookup.cc
release: 1.0.17
[lilypond.git] / lily / lookup.cc
index 07e7e63ca4ddeb5578e2cb1e30f83d78514a5b9e..8ba88483f5f080c3bf4fdf17d0a2274863318bf8 100644 (file)
@@ -20,7 +20,6 @@
 #include "paper-def.hh"
 #include "string-convert.hh"
 #include "main.hh"
-#include "lily-guile.hh"
 
 Lookup::Lookup ()
 {
@@ -66,7 +65,7 @@ Lookup::add (String s, Symtable*p)
 }
 
 Atom
-Lookup::afm_find (String s, String str, bool warn) const
+Lookup::afm_find (String s, String str) const
 {
   if (!afm_p_)
     {
@@ -75,7 +74,7 @@ Lookup::afm_find (String s, String str, bool warn) const
       *mlog << "]" << flush ;
       DOUT << this->afm_p_->str ();
     }
-  Adobe_font_char_metric m = afm_p_->find_char (s, warn);
+  Adobe_font_char_metric m = afm_p_->find_char (s);
 
   Atom a;
   if (m.code () < 0)
@@ -151,58 +150,6 @@ Lookup::clef (String st) const
   return afm_find (String ("clefs") + String ("-") + st);
 }
 
-Atom
-Lookup::dashed_slur (Array<Offset> controls, Real thick, Real dash) const
-{
-  assert (controls.size () == 8);
-
-  Real dx = controls[3].x () - controls[0].x ();
-  Real dy = controls[3].y () - controls[0].y ();
-
-  Atom a;
-  a.font_ = font_;
-  a.dim_[X_AXIS] = Interval (0, dx);
-  a.dim_[Y_AXIS] = Interval (0 <? dy,  0 >? dy);
-
-#ifndef HAVE_LIBGUILE
-
-  String ps;
-  for (int i = 1; i < 4; i++)
-    ps += String_convert::double_str (controls[i].x ()) + " "
-      + String_convert::double_str (controls[i].y ()) + " ";
-
-  ps += String_convert::double_str (controls[0].x ()) + " "
-    + String_convert::double_str (controls[0].y ()) + " ";
-
-  ps += String_convert::double_str (thick) + " ";
-  Real on = dash > 1? thick * dash - thick : 0;
-  Real off = 2 * thick;
-  ps += "[" + String_convert::double_str (on) + " ";
-  ps += String_convert::double_str (off) + "] ";
-  ps += String_convert::int_str (0) + " ";
-  ps += "draw_dashed_slur ";
-
-  a.str_ = ps;
-
-#else // HAVE_LIBGUILE
-
-  // (lambda (o) (dashed-slur o '((0.1 0.2) (1.1 1.2) (2.1 2.2) (3.1 3.2))))
-  a.lambda_ = 
-    gh_append (gh_lambda_o (), 
-    gh_list1 (gh_append (gh_func_o ("dashed-slur"),
-    gh_cons (gh_double2scm (thick), gh_cons (gh_double2scm (dash),
-    gh_list1 (gh_list2 (gh_quote (),
-    gh_cons (gh_list2 (gh_double2scm (controls[0].x ()), gh_double2scm (controls[0].y ())),
-    gh_cons (gh_list2 (gh_double2scm (controls[1].x ()), gh_double2scm (controls[1].y ())),
-    gh_cons (gh_list2 (gh_double2scm (controls[2].x ()), gh_double2scm (controls[2].y ())),
-    gh_cons (gh_list2 (gh_double2scm (controls[3].x ()), gh_double2scm (controls[3].y ())),
-    SCM_EOL)))))))))));
-
-#endif // HAVE_LIBGUILE
-
-  return a;
-}
-
 Atom
 Lookup::dots () const
 {
@@ -282,11 +229,11 @@ Atom
 Lookup::special_time_signature (String s, Array<Scalar> arr) const
 {
   String symbolname = "timesig-"+s+"%/%";
-  Atom a (afm_find (substitute_args (symbolname, arr), false));
+  Atom a (afm_find (substitute_args (symbolname, arr)));
   if (!a.empty ()) 
     return a;
   // Try if the full name was given
-  a = afm_find ("timesig-"+s, false);
+  a = afm_find ("timesig-"+s);
   if (!a.empty ()) 
     return a;
   // Resort to default layout with numbers