From: fred Date: Tue, 26 Mar 2002 22:27:54 +0000 (+0000) Subject: lilypond-1.2.15 X-Git-Tag: release/1.5.59~2107 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e044ced1da078159ed6f0234d1134071085ccd11;p=lilypond.git lilypond-1.2.15 --- 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]); }