#include "note-head.hh"
-#include <cmath>
+#include <math.h>
#include <cctype>
#include "directional-element-interface.hh"
Stencil out;
- String prefix = "noteheads-";
+ String prefix = "noteheads.";
String idx =
prefix + ((stem_dir == UP) ? "u" : "d") + ly_scm2string (scm_font_char);
out = fm->find_by_name (idx);
- if (out.is_empty ()
- && stem_dir)
+ if (out.is_empty ())
{
idx = prefix + "s" + ly_scm2string (scm_font_char);
out = fm->find_by_name (idx);
if (k >= 0)
{
Box b = fm->get_indexed_char (k);
- Offset wxwy = fm->get_indexed_wxwy (k);
+ Offset wxwy = fm->attachment_point (key);
Interval v = b[a];
if (!v.is_empty ())
return 2 * (wxwy[a] - v.center ()) / v.length ();