fix: match Chrome's font fallback behavior (#15486)
* fix: match Chrome's font fallback behavior Fixes #15481 * add a cache * add test * another test * fix tests * arial -> dejavu sans on linux apparently?
This commit is contained in:
parent
ca2d74e118
commit
7e0e12b8a3
7 changed files with 264 additions and 0 deletions
18
atom/browser/font_defaults.h
Normal file
18
atom/browser/font_defaults.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Copyright (c) 2018 Slack Technologies, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ATOM_BROWSER_FONT_DEFAULTS_H_
|
||||
#define ATOM_BROWSER_FONT_DEFAULTS_H_
|
||||
|
||||
namespace content {
|
||||
struct WebPreferences;
|
||||
} // namespace content
|
||||
|
||||
namespace atom {
|
||||
|
||||
void SetFontDefaults(content::WebPreferences* prefs);
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_FONT_DEFAULTS_H_
|
Loading…
Add table
Add a link
Reference in a new issue