summaryrefslogtreecommitdiff
path: root/src/lib/font_id_allocator.cc
AgeCommit message (Collapse)Author
2025-10-01Fixes for rendering main captions and closed subtitles.Carl Hetherington
2025-07-10Remove compose.hpp includes.Carl Hetherington
sed -i "/include.*compose.hpp/d;" src/lib/*.cc src/wx/*.cc src/wx/*.h src/tools/*.cc src/lib/*.h test/*.cc
2025-07-10Replace String::compose with fmt.Carl Hetherington
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
2024-09-03Adapt to some libdcp class renaming to allow open captions/closed subtitles.Carl Hetherington
2024-06-28Merge remote-tracking branch 'origin/main' into v2.17.xCarl Hetherington
2024-06-27Fix error when importing bad subtitle file (#2838).Carl Hetherington
The subtitle XML refers to a font with no corresponding <LoadFont>.
2024-06-11Simplify the FontIDAllocator a lot (#2827).Carl Hetherington
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.
2024-06-07Fix font ID allocation from DCP when there are subs and ccaps using the same ↵Carl Hetherington
IDs (#2822). Previously we would always use <last-reel+1>_id as a disambiguated ID for every case.
2024-01-15Fix handling of empty font IDs and default DCP fonts (#2721) (part of #2722).Carl Hetherington
Previously we used an empty font ID as the default for when a subtitle has no Font, but in #2721 we saw a DCP with an empty font ID which raised an assertion (because we'd already added our default font with the empty ID). Here we try to fix this (and also make the default font correctly be that from the first <LoadFont>).
2024-01-04Don't try to add fonts from an asset that we don't have.Carl Hetherington
2023-11-17Always add a font with an empty ID (#2649).Carl Hetherington
It's not just subtitle files with no <LoadFont> that can have subtitles without a specified font. In particular, DoM makes a single space subtitle with no font spec when it creates filler subtitles in multi-reel DCPs.
2023-10-15Fix DCP content font ID allocation to cope with DCPs that have multiple fontsCarl Hetherington
with the same name in the same reel (#2600). Previously we had this id_for_font_in_reel() which would give an ID of N_font-ID. This means we got duplicate font IDs. Here we replace that method with FontAllocator, which gives an ID of N_font-ID for the first font and M_font-ID, where M is a number higher than the highest reel index. The idea is to support the required new IDs without breaking exisiting projects. There is some documentation of how it works in doc/design/fonts