mirror of https://github.com/odrling/Aegisub
Deduplicate matched paths from CoreText
This commit is contained in:
parent
2527204515
commit
d152af1f14
|
@ -90,5 +90,8 @@ CollectionResult CoreTextFontFileLister::GetFontPaths(std::string const& facenam
|
|||
}
|
||||
}
|
||||
|
||||
sort(begin(ret.paths), end(ret.paths));
|
||||
ret.paths.erase(unique(begin(ret.paths), end(ret.paths)), end(ret.paths));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue