#ifndef UI_GFX_FONT_FALLBACK_LINUX_H_
#define UI_GFX_FONT_FALLBACK_LINUX_H_
#include <string>
#include "base/component_export.h"
#include "base/files/file_path.h"
#include "third_party/icu/source/common/unicode/uchar.h"
namespace gfx {
COMPONENT_EXPORT(GFX) size_t GetFallbackFontEntriesCacheSizeForTesting();
COMPONENT_EXPORT(GFX) size_t GetFallbackFontListCacheSizeForTesting();
COMPONENT_EXPORT(GFX) void ClearAllFontFallbackCachesForTesting();
struct COMPONENT_EXPORT(GFX) FallbackFontData {
std::string name;
base::FilePath filepath;
int fontconfig_interface_id = 0;
int ttc_index = 0;
bool is_bold = false;
bool is_italic = false;
FallbackFontData();
FallbackFontData(const FallbackFontData& other);
FallbackFontData& operator=(const FallbackFontData& other);
};
COMPONENT_EXPORT(GFX)
bool GetFallbackFontForChar(UChar32 c,
const std::string& preferred_locale,
FallbackFontData* fallback_font);
}
#endif