FontAccess: Ensure there are no duplicates in enumeration
The use of the system APIs sometimes return duplicates. This change adds measures to prevent duplicates from occurring in the enumerations and measures their incidence. This CL treats fonts having the same postscript name as unique. This follows what Mac OS does: https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html And also mirrors the matching behavior in @font-face src: local matching. Bug: 1043306 Change-Id: I9c8cdd26a47e0f54c4c5c35c2df80f1bed46e4bd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2438875 Commit-Queue: Brian White <bcwhite@chromium.org> Reviewed-by:Brian White <bcwhite@chromium.org> Reviewed-by:
Joshua Bell <jsbell@chromium.org> Auto-Submit: Olivier Yiptong <oyiptong@chromium.org> Cr-Commit-Position: refs/heads/master@{#812651}
Showing
Please register or sign in to comment