]> git.donarmstrong.com Git - lilypond.git/commitdiff
Load only the default font for System_start_delimiter
authorPatrick McCarty <pnorcks@gmail.com>
Sun, 1 Nov 2009 20:46:30 +0000 (12:46 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Sun, 1 Nov 2009 20:46:30 +0000 (12:46 -0800)
Now that we have Gonville-Brace as an alternative font for
System_start_delimiter, we need to find the default font instead.

lily/system-start-delimiter.cc

index 62c2bb52716785070538055b10652297f22bd60c..7f8d93eaa9f782361d701774c1f222e7fac418d9 100644 (file)
@@ -137,15 +137,11 @@ Stencil
 System_start_delimiter::staff_brace (Grob *me, Real y)
 {
   Font_metric *fm = 0;
-  /* We go through the style sheet to lookup the font file
-     name.  This is better than using find_font directly,
-     esp. because that triggers mktextfm for non-existent
-     fonts. */
-  SCM fam = scm_cons (ly_symbol2scm ("font-encoding"),
-                     ly_symbol2scm ("fetaBraces"));
 
-  SCM alist = scm_list_n (fam, SCM_UNDEFINED);
-  fm = select_font (me->layout (), scm_list_n (alist, SCM_UNDEFINED));
+  /*
+    Find the default brace font if the user overrides it.
+  */
+  fm = Font_interface::get_default_font (me);
 
   int
     lo = 0;