- Real sc = ly_scm2double (scale);
- return ly_scm2double (val) / sc;
-}
-
-/* FIXME. This is broken until we have a generic way of
- putting lists inside the \paper block. */
-Interval
-Paper_def::line_dimensions_int (int n) const
-{
- Real lw = get_dimension (ly_symbol2scm ("linewidth"));
- Real ind = n? 0.0:get_dimension (ly_symbol2scm ("indent"));
-
- return Interval (ind, lw);
-}
-
-Paper_outputter*
-Paper_def::get_paper_outputter (String outname) const
-{
- progress_indication (_f ("paper output to `%s'...",
- outname == "-" ? String ("<stdout>") : outname));
-
- Paper_outputter * po = new Paper_outputter (outname);
- Path p = split_path (outname);
- p.ext = "";
- po->basename_ = p.to_string ();
- return po;
+ Real lookup_mag = m / output_scale (mod);
+
+ SCM font_table = get_font_table (mod);
+ SCM sizes = scm_hashq_ref (font_table, f->self_scm (), SCM_EOL);
+ SCM handle = scm_assoc (scm_make_real (lookup_mag), sizes);
+ if (scm_is_pair (handle))
+ return unsmob_metrics (scm_cdr (handle));
+
+ SCM val = Modified_font_metric::make_scaled_font_metric (f, lookup_mag);
+
+ sizes = scm_acons (scm_make_real (lookup_mag), val, sizes);
+ scm_gc_unprotect_object (val);
+ scm_hashq_set_x (font_table, f->self_scm (), sizes);
+ return unsmob_metrics (val);