Deduplicate matched paths from CoreText
This commit is contained in:
parent
2527204515
commit
d152af1f14
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue