2 font-config.cc -- implement Font_config related functions
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
11 #ifdef HAVE_FONTCONFIG
13 #include <fontconfig/fontconfig.h>
15 #include "file-path.hh"
22 if (be_verbose_global)
23 progress (_("Initializing FontConfig ..."));
26 error (_ ("FontConfig failed to initialize"));
28 FcConfig *fcc = FcConfigGetCurrent ();
31 dirs.push (prefix_directory + "/fonts/otf/");
32 dirs.push (prefix_directory + "/mf/out/");
33 dirs.push (prefix_directory + "/fonts/type1/");
34 dirs.push (prefix_directory + "/fonts/cff/");
36 for (int i = 0; i < dirs.size (); i++)
39 if (!FcConfigAppFontAddDir (fcc, (FcChar8 *)dir.to_str0 ()))
40 error (_f ("Failed to add lilypond directory %s", dir));
43 if (be_verbose_global)