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>
14 #include <fontconfig/fontconfig.h>
16 #include "file-path.hh"
24 error (_ ("FontConfig failed to initialize"));
26 FcConfig *fcc = FcConfigGetCurrent ();
29 dirs.push (prefix_directory + "/otf/");
30 dirs.push (prefix_directory + "/mf/out/");
31 dirs.push (prefix_directory + "/type1/");
32 dirs.push (prefix_directory + "/cff/");
34 for (int i = 0; i < dirs.size (); i++)
37 if (!FcConfigAppFontAddDir (fcc, (FcChar8*)dir.to_str0 ()))
38 error (_f ("Failed to add lilypond directory %s", dir));