Commit 871c250d authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

BB 43322: Customize the font visibility lists.

Customize the lists of fonts to assign base visibility to in
base browser and derivatives.

Also, rename the files with the upstream lists, to make sure we do not
use them by mistake.
parent be4e3806
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

static const char* kBaseFonts[] = {
    "Apple Color Emoji",
    "AppleGothic",
    "Arial",
    "Arial Black",
    "Arial Narrow",
    "Courier",
    "Courier New",
    "Geneva",
    "Georgia",
    "Heiti TC",
    "Helvetica",
    "Helvetica Neue",
    "Hiragino Kaku Gothic ProN",
    "Kailasa",
    "Lucida Grande",
    "Menlo",
    "Monaco",
    "PingFang HK",
    "PingFang SC",
    "PingFang TC",
    "Songti SC",
    "Songti TC",
    "Tahoma",
    "Thonburi",
    "Times",
    "Times New Roman",
    "Verdana",
};
+25 −0
Original line number Diff line number Diff line
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

static const char* kBaseFonts[] = {
    "Arial",
    "Cambria Math",
    "Consolas",
    "Courier New",
    "Georgia",
    "Lucida Console",
    "Malgun Gothic",
    "Microsoft Himalaya",
    "Microsoft JhengHei",
    "Microsoft YaHei",
    "MS Gothic",
    "MS PGothic",
    "MV Boli",
    "Segoe UI",
    "SimSun",
    "Sylfaen",
    "Tahoma",
    "Times New Roman",
    "Verdana",
};
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef BASE_BROWSER_VERSION
// List of standard font families installed as part of Windows 10
// from https://docs.microsoft.com/en-us/typography/fonts/windows_10_font_list
// TODO: check whether we need to list legacy styled family names like "... Light".
@@ -209,6 +210,7 @@ static const char* kLangPackFonts[] = {
//  "Rockwell Nova",  // Pan-European Supplemental Fonts - EXCLUDED
//  "Verdana Pro",  // Pan-European Supplemental Fonts - EXCLUDED
};
#endif

struct FontSubstitute {
  const char *substituteName;
Loading