From bd7f33811517f750a880b17a924fc380d7501ec1 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 2 Feb 2012 19:31:37 +0000 Subject: [PATCH] Don't copy fonts which appear in styles but are never actually used Originally committed to SVN as r6436. --- aegisub/src/font_file_lister.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/font_file_lister.cpp b/aegisub/src/font_file_lister.cpp index 2beea0caf..5951077a2 100644 --- a/aegisub/src/font_file_lister.cpp +++ b/aegisub/src/font_file_lister.cpp @@ -94,6 +94,8 @@ void FontCollector::ProcessDialogueLine(AssDialogue *line, int index) { } void FontCollector::ProcessChunk(std::pair const& style) { + if (style.second.chars.empty()) return; + FontFileLister::CollectionResult res = lister.GetFontPaths(style.first.facename, style.first.bold, style.first.italic, style.second.chars); if (res.paths.empty()) {