]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-parser.cc
* scm/framework-texstr.scm (header): change extension to .textmetrics
[lilypond.git] / lily / lily-parser.cc
index fb09a41e5290f3356b5d99eeae0e425fc444694d..feb9943a7c26c6e305751bf6045635276b9fb820 100644 (file)
@@ -8,7 +8,7 @@
 */
 
 #include "lily-parser.hh"
-
+#include "text-metrics.hh"
 #include "book.hh"
 #include "lilypond-key.hh"
 #include "file-name.hh"
@@ -86,6 +86,11 @@ Lily_parser::print_smob (SCM s, SCM port, scm_print_state*)
 void
 Lily_parser::parse_file (String init, String name, String out_name)
 {
+  if (output_format_global == "tex")
+    {
+      try_load_text_metrics (out_name); 
+    }
+  
   lexer_ = new Lily_lexer (sources_);
   scm_gc_unprotect_object (lexer_->self_scm ());
   // TODO: use $parser