From f07e463e75103efcf6b0414a01e759bff5f8fb55 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 7 Nov 2006 19:05:55 +0100 Subject: [PATCH] excise cmr10 --- lily/all-font-metrics.cc | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lily/all-font-metrics.cc b/lily/all-font-metrics.cc index 4159cd5a32..4d95f9e6c1 100644 --- a/lily/all-font-metrics.cc +++ b/lily/all-font-metrics.cc @@ -15,8 +15,6 @@ #include "scm-hash.hh" #include "warn.hh" -static char const *default_font_str0_ = "cmr10"; - All_font_metrics::All_font_metrics (string path) { otf_dict_ = new Scheme_hash_table; @@ -158,20 +156,9 @@ All_font_metrics::find_font (string name) { Font_metric *f = find_otf (name); - - if (!f) - { - warning (_f ("can't find font: `%s'", name.c_str ())); - warning (_ ("loading default font")); - } - - string def_name = default_font_str0_; - if (!f) { - error (_f ("can't find default font: `%s'", def_name.c_str ())); - error (_f ("(search path: `%s')", search_path_.to_string ())); - error (_ ("giving up")); + error (_f ("can't find font: `%s'", name.c_str ())); } return f; -- 2.39.5