From a44e4cedc7054cb12979fb0cb188bf6d8545aebf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 31 Mar 2026 22:39:40 +0200 Subject: MISSING_FONT: note -> load_font_id. --- src/verify.cc | 4 ++-- src/verify.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 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 process_str case VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION: return compose(" 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 __ node which refers to a font file that is not found - * note contains the ID + * load_font_id contains the ID * reel_index contains the reel index (starting from 0) */ MISSING_FONT, -- cgit v1.2.3