]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/virtual-font-metric.cc
* lily/open-type-font.cc (load_scheme_table): new function
[lilypond.git] / lily / virtual-font-metric.cc
index 7b8bd26d14a6484b3a2fc19c4971f4b5ac2f3ec3..a2fd658558fc7913a325682b0e4d9e4895476ec9 100644 (file)
@@ -71,9 +71,7 @@ Virtual_font_metric::find_by_name (String glyph) const
 {
   Stencil m;  
   for (SCM s = font_list_; m.is_empty () && scm_is_pair (s); s = scm_cdr (s))
-    {
-      m = unsmob_metrics (scm_car (s))->find_by_name (glyph);
-    }
+    m = unsmob_metrics (scm_car (s))->find_by_name (glyph);
 
   return m;
 }
@@ -127,7 +125,7 @@ Virtual_font_metric::name_to_index (String glyph) const
   int total = 0; 
   for (SCM s = font_list_; m.is_empty () && scm_is_pair (s); s = scm_cdr (s))
     {
-      Font_metric *m =unsmob_metrics (scm_car (s));
+      Font_metric *m = unsmob_metrics (scm_car (s));
       int k = m->name_to_index (glyph);
       if (k >= 0)
        return total + k;