]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/all-font-metrics.cc
release: 1.3.145
[lilypond.git] / lily / all-font-metrics.cc
index ce1c5edb3aef2889017a376de08ce0b5c406dd07..72003d663eae05785881c332e30d09f480abe54c 100644 (file)
@@ -78,8 +78,13 @@ All_font_metrics::find_afm (String name)
       Adobe_font_metric *afm
        = dynamic_cast<Adobe_font_metric*> (unsmob_metrics (val));
 
-      if (output_format_global == "tex")
+      /*
+       only check checksums if there is one.  We take the risk that
+       some file has valid checksum 0
+      */
+      if (afm->checksum_)
        {
+         
          Tex_font_metric * tfm = find_tfm (name);
          
          /* FIXME: better warning message