summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-31 22:39:40 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commita44e4cedc7054cb12979fb0cb188bf6d8545aebf (patch)
tree39363454b3f8cea3af305a7ad3a9b9d2de93ae4f /src
parentfe938d4dd52ab41be4cdd441d5d4289deae6190d (diff)
MISSING_FONT: note -> load_font_id.
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc4
-rw-r--r--src/verify.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc
index bc3adea0..e1542eaa 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -752,7 +752,7 @@ verify_interop_text_asset(Context& context, shared_ptr<const InteropTextAsset> a
}
auto const unresolved = asset->unresolved_fonts();
if (!unresolved.empty()) {
- context.add_note(VerificationNote::Code::MISSING_FONT, unresolved.front());
+ context.add_note(VerificationNote(VerificationNote::Code::MISSING_FONT).set_load_font_id(unresolved.front()));
}
}
@@ -2192,7 +2192,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION:
return compose("<MainSoundConfiguration> has an invalid value: %1", *note.error());
case VerificationNote::Code::MISSING_FONT:
- return compose("The font file for font ID \"%1\" was not found, or was not referred to in the ASSETMAP.", note.note().get());
+ return compose("The font file for font ID \"%1\" was not found, or was not referred to in the ASSETMAP.", *note.load_font_id());
case VerificationNote::Code::INVALID_JPEG2000_TILE_PART_SIZE:
return compose(
"Frame %1 has an image component that is too large (component %2 is %3 bytes in size).",
diff --git a/src/verify.h b/src/verify.h
index ba485242..0a876f1c 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -544,7 +544,7 @@ public:
*/
INVALID_MAIN_SOUND_CONFIGURATION,
/** An interop subtitle file has a _<LoadFont>_ node which refers to a font file that is not found
- * note contains the <LoadFont> ID
+ * load_font_id contains the <LoadFont> ID
* reel_index contains the reel index (starting from 0)
*/
MISSING_FONT,