Handle fonts for ccaps coming from DCP content (#2525).
[dcpomatic.git] / src / wx / verify_dcp_dialog.cc
index 07e3589e52bc4f0dfa2577b502ea3f8e831a0009..b3e229087155fdb045d7c2d91f6b991e99517e75 100644 (file)
@@ -106,6 +106,9 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                if (note.size()) {
                        message.Replace("%size", std_to_wx(dcp::raw_convert<string>(note.size().get())));
                }
+               if (note.id()) {
+                       message.Replace("%id", std_to_wx(note.id().get()));
+               }
                add_bullet (note.type(), message);
                counts[note.type()]++;
        };
@@ -419,6 +422,9 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                case dcp::VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT:
                        add(i, _("The XML in the subtitle asset %n has more than one namespace declaration."));
                        break;
+               case dcp::VerificationNote::Code::MISSING_LOAD_FONT:
+                       add(i, _("A subtitle or closed caption refers to a font with ID %id that does not have a corresponding <LoadFont> node."));
+                       break;
                }
        }