blob: e134f3043a4e5cf0d7aad4fdeb6de78fe0b5f6a7 [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/font_names_testing.h"
#include "build/build_config.h"
namespace gfx {
/*
Reference for fonts available on Android:
Jelly Bean:
https://android.googlesource.com/platform/frameworks/base/+/jb-release/data/fonts/system_fonts.xml
KitKat:
https://android.googlesource.com/platform/frameworks/base/+/kitkat-release/data/fonts/system_fonts.xml
master:
https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/fonts.xml
Note that we have to support the full range from JellyBean to the latest
dessert.
*/
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
const char kTestFontName[] = "Arimo";
#elif BUILDFLAG(IS_ANDROID)
const char kTestFontName[] = "sans-serif";
#else
const char kTestFontName[] = "Arial";
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
const char kSymbolFontName[] = "DejaVu Sans";
#elif BUILDFLAG(IS_ANDROID)
const char kSymbolFontName[] = "monospace";
#elif BUILDFLAG(IS_WIN)
const char kSymbolFontName[] = "Segoe UI Symbol";
#else
const char kSymbolFontName[] = "Symbol";
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
const char kCJKFontName[] = "Noto Sans CJK JP";
#elif BUILDFLAG(IS_ANDROID)
const char kCJKFontName[] = "serif";
#elif BUILDFLAG(IS_MAC)
const char kCJKFontName[] = "Heiti SC";
#elif BUILDFLAG(IS_IOS)
const char kCJKFontName[] = "PingFang SC";
#else
const char kCJKFontName[] = "SimSun";
#endif
} // namespace gfx