+2004-12-29 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scm/framework-texstr.scm (header): change extension to .textmetrics
+
+ * lily/lily-parser.cc (parse_file): do try_load_text_metrics for
+ -f tex.
+
+ * lily/text-metrics.cc: new file.
+ (try_load_text_metrics): new function
+
+ * lily/include/text-metrics.hh: new file.
+
2004-12-28 Han-Wen Nienhuys <hanwen@xs4all.nl>
* lily/include/lily-guile.hh (ly_lily_module_constant): rename
#include "dimensions.hh"
#include "font-metric.hh"
#include "main.hh"
+#include "file-path.hh"
static SCM text_dimension_hash_tab;
void
try_load_text_metrics (String basename)
{
- String path = global_path.find_file (basename + ".textmetrics");
+ String path = global_path.find (basename + ".textmetrics");
if (path != "")
{
- String contents (gulp_file_to_string (path));
+ String contents (gulp_file_to_string (path, true));
contents = "(quote (" + contents + "))";
SCM lst = scm_c_eval_string (contents.to_str0 ());
int
Tweak_registry::print_smob (SCM smob, SCM port, scm_print_state*)
{
+ (void) smob; // smother warning.
scm_puts ("#<Tweak_registry>", port);
return 1;
}