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 +++++- src/subtitle_asset.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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())); } diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index e40118c4..ce76eb3b 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -161,6 +161,7 @@ protected: mutable boost::optional file; }; + /** TTF font data that we need */ std::list _fonts; private: -- cgit v1.2.3