X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffont_config.h;h=57f733b7b07ee854a8e2c8ece48879b30bd07f33;hb=HEAD;hp=7527d9127fea21c9bc651dd44c2745186d27da98;hpb=9a7b67aee32a40539f29bc2d7017edd4a4f65f11;p=dcpomatic.git diff --git a/src/lib/font_config.h b/src/lib/font_config.h index 7527d9127..57f733b7b 100644 --- a/src/lib/font_config.h +++ b/src/lib/font_config.h @@ -19,6 +19,7 @@ */ +#include "font_comparator.h" #include #include #include @@ -31,13 +32,19 @@ class FontConfig public: static FontConfig* instance(); - std::string make_font_available(boost::filesystem::path font_file); + std::string make_font_available(std::shared_ptr font); + boost::optional system_font_with_name(std::string name); + + static void drop(); private: FontConfig(); + ~FontConfig(); FcConfig* _config = nullptr; - std::map _available_fonts; + std::map _available_fonts; + + std::vector _temp_files; static FontConfig* _instance; };