1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // Copyright 2016 The Chromium Authors. All rights reserved.
- // 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_APPLE)
- const char kCJKFontName[] = "Heiti SC";
- #else
- const char kCJKFontName[] = "SimSun";
- #endif
- } // namespace gfx
|