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"
23 error (_ ("FontConfig failed to initialize"));
25 FcConfig *fcc = FcConfigGetCurrent ();
28 dirs.push (prefix_directory + "/fonts/otf/");
29 dirs.push (prefix_directory + "/mf/out/");
30 dirs.push (prefix_directory + "/fonts/type1/");
31 dirs.push (prefix_directory + "/fonts/cff/");
33 for (int i = 0; i < dirs.size (); i++)
36 if (!FcConfigAppFontAddDir (fcc, (FcChar8 *)dir.to_str0 ()))
37 error (_f ("Failed to add lilypond directory %s", dir));