Don't copy fonts which appear in styles but are never actually used

Originally committed to SVN as r6436.
This commit is contained in:
Thomas Goyne 2012-02-02 19:31:37 +00:00
parent da61e75f75
commit bd7f338115
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ void FontCollector::ProcessDialogueLine(AssDialogue *line, int index) {
}
void FontCollector::ProcessChunk(std::pair<StyleInfo, UsageData> 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()) {