electron/atom/browser/font_defaults.h
Jeremy Apthorp 7e0e12b8a3 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?
2018-11-08 10:51:51 -04:00

18 lines
429 B
C++

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