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:
Jeremy Apthorp 2018-11-08 06:51:51 -08:00 committed by John Kleinschmidt
parent ca2d74e118
commit 7e0e12b8a3
7 changed files with 264 additions and 0 deletions

View 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_