#ifndef COMPONENTS_SERVICES_FONT_FONTCONFIG_MATCHING_H_
#define COMPONENTS_SERVICES_FONT_FONTCONFIG_MATCHING_H_
#include <optional>
#include "base/files/file_path.h"
namespace font_service {
class FontConfigLocalMatching {
public:
struct FontConfigMatchResult {
base::FilePath file_path;
unsigned ttc_index;
};
static std::optional<FontConfigMatchResult>
FindFontByPostscriptNameOrFullFontName(const std::string& font_name);
private:
static std::optional<FontConfigMatchResult> FindFontBySpecifiedName(
const char* fontconfig_parameter_name,
const std::string& font_name);
};
}
#endif