source file of the GNU LilyPond music typesetter
- (c) 2004--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#define PANGO_ENABLE_BACKEND // ugh, why necessary?
#include "string-convert.hh"
#include "warn.hh"
#include "all-font-metrics.hh"
+#include "program-option.hh"
#if HAVE_PANGO_FT2
#include "stencil.hh"
{
int errorcode = FT_Get_Glyph_Name (ftface, pg, glyph_name, GLYPH_NAME_LEN);
if (errorcode)
- programming_error ("FT_Get_Glyph_Name returns error");
+ programming_error (_f ("FT_Get_Glyph_Name () error: %s",
+ freetype_error_string (errorcode).c_str ()
+ ));
}
SCM char_id = SCM_EOL;
UGH. Should have flags per output format signifying supported
options.
*/
- if (output_backend_global != "ps"
- && output_backend_global != "eps")
+ string name = get_output_backend_name ();
+ if (name != "ps" && name != "eps")
{
/*
For Pango based backends, we take a shortcut.