commit | 7cbdf7c9c8e2a5fafe5a783d8deca037b5e50439 | [log] [tgz] |
---|---|---|
author | Dominik Röttsches <drott@chromium.org> | Tue Oct 22 20:05:38 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 22 20:05:38 2019 |
tree | f865875db3cc24740c26ed36005cca36125975c0 | |
parent | f116c65c50af5f3ea566e5346d2c40072c80742f [diff] |
Test for font family on mac using NSFontManager::availableFontsForFamily On Mac OS 10.15 Catalina, NSFontManager::availableFamilies does not list "Hiragino Kaku Gothic ProN" any more but only lists it as "Hiragino Sans". However, NSFontManager::availableFontsForFamily still shows results when searching for this name. Use this as a workaround for finding a result for the standard "sans-serif" Japanese font that is stored in the preferences, which is "Hiragino Kaku Gothic ProN", until we update this font matching code to be only CoreText based. Since the previous code mentions enumerating families being essential for performing case-insensitive comparisons, add a test to ensure that the new API actually performs case-insensitive matches on all Mac OS versions (at this point back to 10.10) that we support. Bug: 1000542 Change-Id: I43aac2ce74cdc40a50d11ff075bad71a7e7a5d38 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872055 Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Reviewed-by: Ben Wagner <bungeman@chromium.org> Cr-Commit-Position: refs/heads/master@{#708317}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .