]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-def.cc
* scm/output-ps.scm (output-scopes): use ly:paper-lookup for font
[lilypond.git] / lily / paper-def.cc
index 125eadbdfa2b51f2c5d94a250291819f26600ade..0e7ab2254e62c056b5add19021359e24eb291aee 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -41,8 +41,6 @@ Paper_def::Paper_def (Paper_def const&src)
 {
 }
 
-
-
 Real
 Paper_def::get_realvar (SCM s) const
 {
@@ -117,8 +115,9 @@ Paper_def::find_font (SCM fn, Real m)
       f = all_fonts_global->find_font (ly_scm2string (fn));
       SCM val = Scaled_font_metric::make_scaled_font_metric (f, m);
       scaled_fonts_ = scm_acons (key, val, scaled_fonts_);
-      f = unsmob_metrics (val);
       scm_gc_unprotect_object (val);
+      
+      f = unsmob_metrics (val);
     }
 
   return f;