]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.69.cb1
authorCarsten Block <cb@lilypond.org>
Wed, 5 Jul 2000 15:34:17 +0000 (17:34 +0200)
committerCarsten Block <cb@lilypond.org>
Wed, 5 Jul 2000 15:34:17 +0000 (17:34 +0200)
VERSION
lily/all-font-metrics.cc
lily/main.cc

diff --git a/VERSION b/VERSION
index 9c8701a77f84fe42a7b5f215a4a3a7671dd7cde0..45f7a19dcfc68e0f0ae9d6c39ada4fe3811b4260 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=69
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=cb1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index f8e2c0cee1ae37ed3c061af5ec6d3c97f769c445..f014ef3e46883bce1600badfa69e11467e8f7449 100644 (file)
 #include "lily-guile.hh"
 #include "tfm-reader.hh"
 
+extern "C" {
+#include <kpathsea/kpathsea.h>
+}
+
 const char * default_font_sz_ = "cmr10";
 
 All_font_metrics::All_font_metrics (String path)
@@ -32,8 +36,11 @@ All_font_metrics::find_afm (String name)
       String path = name  + ".afm";
       path = search_path_.find (path);
       if (path.empty_b ())
-       return 0;
-
+        { 
+         path = kpse_find_file(name.ch_C(), kpse_afm_format, true);
+         if (path.empty_b())
+           return 0;
+        }
       if (verbose_global_b)
        progress_indication ("[" + path);
       Adobe_font_metric * afm_p = read_afm_file (path);
@@ -78,8 +85,13 @@ All_font_metrics::find_tfm (String name)
     {
       String path = name  + ".tfm";
       path = search_path_.find (path);
+      path = search_path_.find (path);
       if (path.empty_b ())
-       return 0;
+        { 
+         path = kpse_find_tfm(name.ch_C());
+         if (path.empty_b())
+           return 0;
+        }
       if (verbose_global_b)
        progress_indication ("[" + path);
       Tex_font_metric  * tfm_p = Tex_font_metric_reader::read_file (path);
index d5752455707c7b65adade9bd7fbaa1c9014343de..fe92bbafa3a0ed71a3cdb9ccaee2ec86c6236559 100644 (file)
@@ -33,6 +33,9 @@
 #include <libintl.h>
 #endif
 
+extern "C" {
+#include <kpathsea/kpathsea.h>
+}
 
 bool verbose_global_b = false;
 bool no_paper_global_b = false;
@@ -309,6 +312,12 @@ main (int argc, char **argv)
   setenv ("GUILE_INIT_SEGMENT_SIZE_1", "4194304", 0);
   setenv ("GUILE_MAX_SEGMENT_SIZE", "8388608", 0);
 
+  /*
+   initialize kpathsea
+   */
+  kpse_set_program_name(argv[0], NULL);
+  kpse_maketex_option("tfm", TRUE);
+
   oparser_global_p = new Getopt_long(argc, argv,theopts);
   while (Long_option_init const * opt = (*oparser_global_p)())
     {