#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)
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);
{
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);
#include <libintl.h>
#endif
+extern "C" {
+#include <kpathsea/kpathsea.h>
+}
bool verbose_global_b = false;
bool no_paper_global_b = false;
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)())
{