From e044ced1da078159ed6f0234d1134071085ccd11 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 22:27:54 +0000 Subject: [PATCH] lilypond-1.2.15 --- lily/lookup.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lily/lookup.cc b/lily/lookup.cc index 0e76c6849d..1000f37ab6 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -424,8 +424,12 @@ Lookup::text (String style, String text, Paper_def *paper_l) const brace_count ++; else if (text[i] == '}') brace_count --; - Character_metric *c = (Character_metric*)afm_l->get_char ((unsigned char)text[i],false); + Character_metric *c = (Character_metric*)afm_l-> + get_char ((unsigned char)text[i],false); + // Ugh, use the width of 'x' for unknown characters + if (c->dimensions()[X_AXIS].length () == 0) + c = (Character_metric*)afm_l->get_char ((unsigned char)'x',false); w += c->dimensions()[X_AXIS].length (); ydims.unite (c->dimensions()[Y_AXIS]); } -- 2.39.5