diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-04-13 23:39:40 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-04-13 23:39:40 +0200 |
| commit | 776836d2700123f8a0f109d3a2ac00fad5cdfd48 (patch) | |
| tree | 1d73fdcd93480d461405483f115ea8a723d1d667 /src/verify.cc | |
| parent | b87af40c55522bae1f23ac43cd25698c0a21f75d (diff) | |
Add check for Interop font assets being present (in the ASSETMAP and on disk).
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc index ab66a00e..d43c7ff1 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -715,6 +715,10 @@ verify_interop_subtitle_asset(shared_ptr<const InteropSubtitleAsset> asset, vect if (asset->subtitles().empty()) { notes.push_back({VerificationNote::Type::ERROR, VerificationNote::Code::MISSING_SUBTITLE, asset->id(), asset->file().get() }); } + auto const unresolved = asset->unresolved_fonts(); + if (!unresolved.empty()) { + notes.push_back({VerificationNote::Type::ERROR, VerificationNote::Code::MISSING_FONT, unresolved.front() }); + } } @@ -2008,6 +2012,8 @@ dcp::note_to_string (VerificationNote note) return String::compose("The sound assets do not all have the same channel count; the first to differ is %1", note.file()->filename()); case VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION: return String::compose("<MainSoundConfiguration> has an invalid value: %1", note.note().get()); + case VerificationNote::Code::MISSING_FONT: + return String::compose("The font file for font ID \"%1\" was not found, or was not referred to in the ASSETMAP.", note.note().get()); } return ""; |
