From a01d614435e4c13dcede5d9f325a1864e576147d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 24 Jul 2017 12:10:26 +0100 Subject: Comments. --- src/interop_subtitle_asset.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/interop_subtitle_asset.cc') diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index 54c27ff5..7d3114c3 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -192,6 +192,10 @@ InteropSubtitleAsset::write (boost::filesystem::path p) const } } +/** Look at a supplied list of assets and find the fonts. Then match these + * fonts up with anything requested by a so that _fonts contains + * a list of font ID, load ID and data. + */ void InteropSubtitleAsset::resolve_fonts (list > assets) { @@ -209,7 +213,7 @@ InteropSubtitleAsset::resolve_fonts (list > assets) break; } } - + if (!got && font->file() && j->uri == font->file()->leaf().string()) { _fonts.push_back (Font (j->id, i->id(), font->file().get())); } -- cgit v1.2.3