Simplify the FontIDAllocator a lot (#2827).
authorCarl Hetherington <cth@carlh.net>
Sun, 9 Jun 2024 23:05:43 +0000 (01:05 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 11 Jun 2024 07:52:28 +0000 (09:52 +0200)
commita224ef26f48e1a9a9189c2b935abb06147b342bc
tree86d3facabe1beb33d87fa99c35200abc9ac8cb4f
parentf37099ba3e9157c3ef74ffcc87c34d3fc54ccfe5
Simplify the FontIDAllocator a lot (#2827).

This is at the expense of forward compatibility, and the need to
re-examine subtitle content (losing custom fonts as we do so).

But it does mean that the code is simpler, and there's not this weird
growth of IDs where a DCP gets imported with some font, and then the ID
becomes 0_font, and if you do it again it's 0_0_font, and so on.
src/lib/check_content_job.cc
src/lib/dcp_content.cc
src/lib/font_id_allocator.cc
src/lib/font_id_allocator.h
test/data
test/dcp_subtitle_test.cc
test/font_id_allocator_test.cc
test/hints_test.cc
test/subtitle_font_id_test.cc