Deduplicate matched paths from CoreText

This commit is contained in:
Thomas Goyne 2015-11-14 11:44:42 -08:00
parent 2527204515
commit d152af1f14
1 changed files with 3 additions and 0 deletions

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