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>
18 #include "file-path.hh"
25 error ("FontConfig failed to initialize");
28 FcConfig *fcc = FcConfigGetCurrent ();
32 dirs.push (prefix_directory + "/otf/");
33 dirs.push (prefix_directory + "/mf/out/");
34 dirs.push (prefix_directory + "/type1/");
35 dirs.push (prefix_directory + "/cff/");
37 for (int i = 0; i < dirs.size(); i++)
39 String path = dirs[i];
40 if (!FcConfigAppFontAddDir (fcc, (FcChar8*)path.to_str0 ()))
42 error (_f ("Failed to add lilypond directory %s", path.to_str0 ()));
49 void init_fontconfig() {}