]> git.sesse.net Git - casparcg/blobdiff - core/producer/text/utils/freetype_library.h
[text_producer] Made it easier to see what fonts are missing when loading a PSD.
[casparcg] / core / producer / text / utils / freetype_library.h
index 92fa5bddaa4cd7acf96a3bf55e2833e1def6b9e3..fe33fbda62b3ff0d2350e6f6ad6f27ff81b370a6 100644 (file)
@@ -33,8 +33,9 @@
 namespace caspar { namespace core { namespace text {
 
 struct freetype_exception : virtual caspar_exception { };
+struct expected_freetype_exception : virtual user_error { };
 
 spl::shared_ptr<std::remove_pointer<FT_Library>::type> get_lib_for_thread();
-spl::shared_ptr<std::remove_pointer<FT_Face>::type> get_new_face(const std::string& font_file);
+spl::shared_ptr<std::remove_pointer<FT_Face>::type> get_new_face(const std::string& font_file, const std::string& font_name = "");
 
 }}}