From ddcd4f3ba0af3e9d49dbb68127317cd0d871a248 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 20 Dec 2020 23:41:52 +0100 Subject: Pass fonts from content around as FontData. i.e. as a block of memory rather than a file. Also, get the fonts from the decoder rather than the content. Together, these changes allow us to use fonts from SMPTE DCPs added as content. Before, fonts would be messed up in those cases (#1885). --- src/lib/decoder.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/decoder.h') diff --git a/src/lib/decoder.h b/src/lib/decoder.h index 97de208b2..169d55553 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -27,6 +27,7 @@ #include "types.h" #include "film.h" +#include "font_data.h" #include "dcpomatic_time.h" #include "weak_film.h" #include @@ -61,6 +62,10 @@ public: virtual void seek (dcpomatic::ContentTime time, bool accurate); virtual dcpomatic::ContentTime position () const; + + virtual std::vector fonts () const { + return std::vector(); + } }; #endif -- cgit v1.2.3