source file of the GNU LilyPond music typesetter
- (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
SCM desc = m->description_;
Real total_mag = magn * gh_scm2double (ly_cdr (desc));
+ assert (total_mag);
+
description_ = gh_cons (ly_car (desc), gh_double2scm (total_mag));
orig_ = m;
}
}
Box
-Scaled_font_metric::get_char (int i) const
+Scaled_font_metric::get_indexed_char (int i) const
+{
+ Box b = orig_->get_indexed_char (i);
+ b.scale (magnification_);
+ return b;
+}
+
+Box
+Scaled_font_metric::get_ascii_char (int i) const
{
- Box b = orig_->get_char (i);
+ Box b = orig_->get_ascii_char (i);
b.scale (magnification_);
return b;
}
{
return orig_->count ();
}
+
+Offset
+Scaled_font_metric::get_indexed_wxwy (int k) const
+{
+ Offset o = orig_->get_indexed_wxwy (k);
+ return o * magnification_;
+}
+
+int
+Scaled_font_metric::name_to_index (String s)const
+{
+ return orig_->name_to_index (s);
+}