+ string output_mod = "scm output-" + name;
+ SCM mod = scm_c_resolve_module (output_mod.c_str ());
+
+ bool has_utf8_string = false;
+
+ if (ly_is_module (mod))
+ {
+ SCM utf8_string = ly_module_lookup (mod, ly_symbol2scm ("utf-8-string"));
+ if (utf8_string != SCM_BOOL_F)
+ has_utf8_string = true;
+ }
+
+ /*
+ The SVG backend only uses utf-8-string for the non-music
+ fonts, hence the check here. --pmccarty
+
+ TODO: use a program option (-dmusic-strings-to-paths) here
+ instead that is enabled only when -dbackend=svg.
+ */
+ if ((name == "svg" && !feta) || (name != "svg" && has_utf8_string))