From: Joe Neeman Date: Fri, 18 Apr 2008 08:38:32 +0000 (+1000) Subject: Don't crash if someone attempts to use an OTF font for a text string. X-Git-Tag: release/2.11.45-1~33^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=04d50dd96c2a97066846e855be7d336c919ea36d;p=lilypond.git Don't crash if someone attempts to use an OTF font for a text string. --- diff --git a/lily/font-metric.cc b/lily/font-metric.cc index 2f61d53f3f..655d992123 100644 --- a/lily/font-metric.cc +++ b/lily/font-metric.cc @@ -188,7 +188,7 @@ Stencil Font_metric::text_stencil (string str) const { (void) str; - assert (false); + programming_error("Cannot get a text stencil from this font"); return Stencil (Box (), SCM_EOL); }