diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-20 23:41:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-22 02:37:53 +0100 |
| commit | ddcd4f3ba0af3e9d49dbb68127317cd0d871a248 (patch) | |
| tree | 1091683b8dcaf82cd517b844be1d76f290f88f50 /src/lib/font_data.h | |
| parent | bf4446523dd891049cabf1bcd68d20def57bc731 (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/font_data.h')
| -rw-r--r-- | src/lib/font_data.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/font_data.h b/src/lib/font_data.h index 90543bec9..686fca7c9 100644 --- a/src/lib/font_data.h +++ b/src/lib/font_data.h @@ -19,6 +19,10 @@ */ +#ifndef DCPOMATIC_FONT_DATA_H +#define DCPOMATIC_FONT_DATA_H + + #include <dcp/array_data.h> #include <boost/optional.hpp> #include <string> @@ -51,3 +55,6 @@ extern bool operator!= (FontData const& a, FontData const& b); } + + +#endif |
