+2005-10-21 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/font-config.cc (init_fontconfig): resurrect mf/out/ check.
+
2005-10-20 Jan Nieuwenhuizen <janneke@gnu.org>
* stepmake/stepmake/script-vars.make (PYTHON_SCRIPTS_IN): Oops. Add.
font_config_global = FcConfigGetCurrent ();
Array<String> dirs;
+ String builddir = prefix_directory + "/mf/out/";
- /*
- ugh. C&P main.cc
- */
- dirs.push (prefix_directory + "/fonts/otf/");
- dirs.push (prefix_directory + "/fonts/type1/");
- dirs.push (prefix_directory + "/fonts/cff/");
- dirs.push (prefix_directory + "/fonts/svg/");
-
+ if (stat (builddir.to_str0 (), &statbuf) == 0)
+ dirs.push (builddir.to_str0 ());
+ else
+ {
+ /*
+ ugh. C&P main.cc
+ */
+ dirs.push (prefix_directory + "/fonts/otf/");
+ dirs.push (prefix_directory + "/fonts/type1/");
+ dirs.push (prefix_directory + "/fonts/cff/");
+ dirs.push (prefix_directory + "/fonts/svg/");
+ }
for (int i = 0; i < dirs.size (); i++)
{
String dir = dirs[i];