Fix font_id_map errors when importing DCP subtitles that have no
[dcpomatic.git] / src / lib / text_content.h
index 66bedecf51007c9e030cf3f01d3261ecc5eb5dfa..7c060cd482afb76fa3bdd152bb8dd178c4d2350f 100644 (file)
@@ -76,7 +76,9 @@ public:
        std::string identifier () const;
        void take_settings_from (std::shared_ptr<const TextContent> c);
 
+       void clear_fonts ();
        void add_font (std::shared_ptr<dcpomatic::Font> font);
+       std::shared_ptr<dcpomatic::Font> get_font(std::string id) const;
 
        void set_use (bool);
        void set_burn (bool);
@@ -204,6 +206,7 @@ private:
 
        void font_changed ();
        void connect_to_fonts ();
+       std::shared_ptr<dcpomatic::Font> get_font_unlocked(std::string id) const;
 
        std::list<boost::signals2::connection> _font_connections;