#ifndef UI_GFX_LINUX_FONTCONFIG_UTIL_H_
#define UI_GFX_LINUX_FONTCONFIG_UTIL_H_
#include <fontconfig/fontconfig.h>
#include "base/files/file_path.h"
#include "ui/gfx/font_render_params.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
struct FcPatternDeleter { … };
ScopedFcPattern;
GFX_EXPORT void InitializeGlobalFontConfigAsync();
GFX_EXPORT FcConfig* GetGlobalFontConfig();
GFX_EXPORT void OverrideGlobalFontConfigForTesting(FcConfig* config);
GFX_EXPORT std::string GetFontName(FcPattern* pattern);
GFX_EXPORT std::string GetFilename(FcPattern* pattern);
GFX_EXPORT int GetFontTtcIndex(FcPattern* pattern);
GFX_EXPORT bool IsFontBold(FcPattern* pattern);
GFX_EXPORT bool IsFontItalic(FcPattern* pattern);
GFX_EXPORT bool IsFontScalable(FcPattern* pattern);
GFX_EXPORT std::string GetFontFormat(FcPattern* pattern);
GFX_EXPORT base::FilePath GetFontPath(FcPattern* pattern);
GFX_EXPORT void GetFontRenderParamsFromFcPattern(FcPattern* pattern,
FontRenderParams* param_out);
#if BUILDFLAG(IS_CHROMEOS_ASH)
GFX_EXPORT bool AddAppFontDir(const base::FilePath& dir);
#endif
}
#endif