summaryrefslogtreecommitdiff
path: root/src/lib/writer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-20 23:41:52 +0100
committerCarl Hetherington <cth@carlh.net>2020-12-22 02:37:53 +0100
commitddcd4f3ba0af3e9d49dbb68127317cd0d871a248 (patch)
tree1091683b8dcaf82cd517b844be1d76f290f88f50 /src/lib/writer.h
parentbf4446523dd891049cabf1bcd68d20def57bc731 (diff)
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).
Diffstat (limited to 'src/lib/writer.h')
-rw-r--r--src/lib/writer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h
index 52cb222e7..b924337dd 100644
--- a/src/lib/writer.h
+++ b/src/lib/writer.h
@@ -40,7 +40,7 @@ namespace dcp {
}
namespace dcpomatic {
- class Font;
+ class FontData;
}
class Film;
@@ -112,7 +112,7 @@ public:
void repeat (Frame, Eyes);
void write (boost::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime time);
void write (PlayerText text, TextType type, boost::optional<DCPTextTrack>, dcpomatic::DCPTimePeriod period);
- void write (std::list<boost::shared_ptr<dcpomatic::Font> > fonts);
+ void write (std::vector<dcpomatic::FontData> fonts);
void write (ReferencedReelAsset asset);
void write (boost::shared_ptr<const dcp::AtmosFrame> atmos, dcpomatic::DCPTime time, AtmosMetadata metadata);
void finish (boost::filesystem::path output_dcp);
@@ -196,7 +196,7 @@ private:
std::list<ReferencedReelAsset> _reel_assets;
- std::list<boost::shared_ptr<dcpomatic::Font> > _fonts;
+ std::vector<dcpomatic::FontData> _fonts;
/** true if any reel has any subtitles */
bool _have_subtitles;