Don't copy fonts which appear in styles but are never actually used
Originally committed to SVN as r6436.
This commit is contained in:
parent
da61e75f75
commit
bd7f338115
1 changed files with 2 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue