Fix subtitle font handling with in-memory fonts from SMPTE (#2509). v2.16.52
authorCarl Hetherington <cth@carlh.net>
Fri, 7 Apr 2023 23:04:37 +0000 (01:04 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 9 Apr 2023 15:23:20 +0000 (17:23 +0200)
commit1c73379ed8483dcf71c5ccfc459c2c22516a9aef
tree2da4861633a408e4a1fef78cc5cb9f608794bd1d
parent46193d2898321c70626a80785055884396f3e09d
Fix subtitle font handling with in-memory fonts from SMPTE (#2509).

Previously we would fail to make a font available if it came from
a SMPTE MXF.  In that case we have a memory buffer containing the
TTF/OTF file but no file; here we add a hack/workaround so that
in-memory font files can be used by FontConfig.
src/lib/font_config.cc
src/lib/font_config.h
src/lib/render_text.cc
src/lib/util.cc
src/tools/dcpomatic.cc
src/tools/dcpomatic_player.cc