X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffont-metric.cc;h=2f61d53f3fb821746b6a64e29b98d6a867b1cbdd;hb=c74523f061cba5fb50d307ff04e3507c8b36f5c8;hp=7cfb8d749ccd1628d958f9ba039102c3d58c8bbf;hpb=a10d5423aa39d7c687dc9d3123177c16f82d4336;p=lilypond.git diff --git a/lily/font-metric.cc b/lily/font-metric.cc index 7cfb8d749c..2f61d53f3f 100644 --- a/lily/font-metric.cc +++ b/lily/font-metric.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2006 Han-Wen Nienhuys + (c) 1999--2007 Han-Wen Nienhuys Mats Bengtsson (the ugly TeX parsing in text_dimension) */ @@ -18,7 +18,6 @@ using namespace std; #include "modified-font-metric.hh" #include "open-type-font.hh" #include "stencil.hh" -#include "virtual-methods.hh" #include "warn.hh" #include "ly-smobs.icc" @@ -41,7 +40,7 @@ Font_metric::find_by_name (string s) const { expr = scm_list_3 (ly_symbol2scm ("named-glyph"), self_scm (), - scm_makfrom0str (s.c_str ())); + ly_string2scm (s)); b = get_indexed_char (idx); } @@ -188,12 +187,9 @@ Font_metric::word_stencil (string str) const Stencil Font_metric::text_stencil (string str) const { - SCM lst = scm_list_3 (ly_symbol2scm ("text"), - this->self_scm (), - scm_makfrom0str (str.c_str ())); - - Box b = text_dimension (str); - return Stencil (b, lst); + (void) str; + assert (false); + return Stencil (Box (), SCM_EOL); } Box