Fix string matching TODO in SkFontMgr_fontconfig
FontConfig may report many names for a given font pattern (since a font
may have many names) and the match pattern may itself have many names.
We wish to know if any font pattern name matches any match
pattern name. Previously this was done with brute force, limiting the
number of names that could reasonably be compared. Instead sort the
lists of names and then compare the sorted lists.
Change-Id: I22e80f0f7ae941d234cad43799c6fb76bee0f841
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/783386
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
3 files changed