source file of the GNU LilyPond music typesetter
- (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
-#include <math.h>
#include "dimensions.hh"
#include "all-font-metrics.hh"
PangoFontDescription *description = 0;
if (scm_is_string (name))
{
- String name_str = ly_scm2string (name);
- description = pango_font_description_from_string (name_str.to_str0 ());
+ string name_str = ly_scm2string (name);
+ description = pango_font_description_from_string (name_str.c_str ());
}
else
{
0.0);
Real size = text_size * pow (2.0, step / 6.0);
- pango_font_description_set_size (description,
- gint (size * PANGO_SCALE));
+ pango_font_description_set_size (description, gint (size * PANGO_SCALE));
return description;
}
{
PangoFontDescription *description = pango_font_description_new ();
- String family_str = "roman";
+ string family_str = "roman";
if (scm_is_symbol (family))
family_str = ly_symbol2string (family);
else if (scm_is_string (family))
family_str = ly_scm2string (family);
pango_font_description_set_family (description,
- family_str.to_str0 ());
+ family_str.c_str ());
pango_font_description_set_style (description,
symbol_to_pango_style (style));
pango_font_description_set_variant (description,