blob: 6e418b7d65ac4091d3204f8c5f54908a5376f7bf [file] [log] [blame]
jbromana48801c2016-04-06 17:48:171// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef UI_GFX_FONT_FALLBACK_LINUX_H_
6#define UI_GFX_FONT_FALLBACK_LINUX_H_
7
8#include <string>
9
Henrique Ferreirof6ba3bf2019-11-21 01:27:4310#include "base/files/file_path.h"
jbromana48801c2016-04-06 17:48:1711#include "third_party/icu/source/common/unicode/uchar.h"
jbromana48801c2016-04-06 17:48:1712#include "ui/gfx/gfx_export.h"
13
14namespace gfx {
15
Etienne Bergeronee1a5992019-10-08 16:01:2216// Exposed fallback font caches methods for testing.
17GFX_EXPORT size_t GetFallbackFontEntriesCacheSizeForTesting();
18GFX_EXPORT size_t GetFallbackFontListCacheSizeForTesting();
19GFX_EXPORT void ClearAllFontFallbackCachesForTesting();
Etienne Bergeronb27aab52019-09-30 16:51:4220
Henrique Ferreiro33fab432019-11-21 10:58:3821struct GFX_EXPORT FallbackFontData {
jbromana48801c2016-04-06 17:48:1722 std::string name;
Henrique Ferreirof6ba3bf2019-11-21 01:27:4323 base::FilePath filepath;
Henrique Ferreiro33fab432019-11-21 10:58:3824 int fontconfig_interface_id = 0;
jbromana48801c2016-04-06 17:48:1725 int ttc_index = 0;
26 bool is_bold = false;
27 bool is_italic = false;
Henrique Ferreiro33fab432019-11-21 10:58:3828
29 FallbackFontData();
30 FallbackFontData(const FallbackFontData& other);
jbromana48801c2016-04-06 17:48:1731};
Henrique Ferreiro33fab432019-11-21 10:58:3832
Henrique Ferreiro