X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fproducer%2Ftext%2Ftext_producer.h;h=85eeb876910ff91fdea58253b409240960b794ca;hb=aa6b89700131a0fd5245f0165a5c630d7c7a69f8;hp=05069cec5f6dcaf992d6c89a08198f65721dc44f;hpb=5ed440013d6827df383cca95b46cbbd5f8955265;p=casparcg diff --git a/core/producer/text/text_producer.h b/core/producer/text/text_producer.h index 05069cec5..85eeb8769 100644 --- a/core/producer/text/text_producer.h +++ b/core/producer/text/text_producer.h @@ -36,7 +36,7 @@ #include "utils/text_info.h" namespace caspar { namespace core { - namespace text + namespace text { void init(module_dependencies dependencies); std::vector> list_fonts(); @@ -45,17 +45,15 @@ namespace caspar { namespace core { class text_producer : public frame_producer_base { public: - text_producer(const spl::shared_ptr& frame_factory, int x, int y, const std::wstring& str, + text_producer(const spl::shared_ptr& frame_factory, int x, int y, const std::wstring& str, text::text_info& text_info, long parent_width, long parent_height, bool standalone); static spl::shared_ptr create(const spl::shared_ptr& frame_factory, int x, int y, const std::wstring& str, text::text_info& text_info, long parent_width, long parent_height, bool standalone = false); - + draw_frame receive_impl() override; std::future call(const std::vector& param) override; variable& get_variable(const std::wstring& name) override; const std::vector& get_variables() const override; - text::string_metrics measure_string(const std::wstring& str); - constraints& pixel_constraints() override; std::wstring print() const override; std::wstring name() const override;