Deduplicate matched paths from CoreText

This commit is contained in:
Thomas Goyne 2015-11-14 11:44:42 -08:00
parent 2527204515
commit d152af1f14

View file

@ -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;
}