Comments.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 Jul 2017 11:10:26 +0000 (12:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 24 Jul 2017 11:10:26 +0000 (12:10 +0100)
src/interop_subtitle_asset.cc
src/subtitle_asset.h

index 54c27ff5225223ff21ae2489561459864bfb4c16..7d3114c3915f3df09ab1cf38610256ad2d38a1cf 100644 (file)
@@ -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 <LoadFont> so that _fonts contains
+ *  a list of font ID, load ID and data.
+ */
 void
 InteropSubtitleAsset::resolve_fonts (list<shared_ptr<Asset> > assets)
 {
@@ -209,7 +213,7 @@ InteropSubtitleAsset::resolve_fonts (list<shared_ptr<Asset> > assets)
                                        break;
                                }
                        }
-                       
+
                        if (!got && font->file() && j->uri == font->file()->leaf().string()) {
                                _fonts.push_back (Font (j->id, i->id(), font->file().get()));
                        }
index e40118c4710c907777ab0f9d112891c8abd238a7..ce76eb3be7fe03d05b6f70b64abd56194f333ae3 100644 (file)
@@ -161,6 +161,7 @@ protected:
                mutable boost::optional<boost::filesystem::path> file;
        };
 
+       /** TTF font data that we need */
        std::list<Font> _fonts;
 
 private: