diff --git a/aegisub/src/font_file_lister.cpp b/aegisub/src/font_file_lister.cpp index 025159aa6..2beea0caf 100644 --- a/aegisub/src/font_file_lister.cpp +++ b/aegisub/src/font_file_lister.cpp @@ -78,13 +78,15 @@ void FontCollector::ProcessDialogueLine(AssDialogue *line, int index) { } else if (AssDialogueBlockPlain *txt = dynamic_cast(line->Blocks[i])) { wxString text = txt->GetText(); - if (text.size()) { - if (overriden) - used_styles[style].lines.insert(index); - std::set& chars = used_styles[style].chars; - for (size_t i = 0; i < text.size(); ++i) - chars.insert(text[i]); - } + + if (text.empty() || (text.size() >= 2 && text.StartsWith("{") && text.EndsWith("}"))) + continue; + + if (overriden) + used_styles[style].lines.insert(index); + std::set& chars = used_styles[style].chars; + for (size_t i = 0; i < text.size(); ++i) + chars.insert(text[i]); } // Do nothing with drawing blocks }