21#ifndef KICAD_FONTCONFIG_H
22#define KICAD_FONTCONFIG_H
24#include <fontconfig/fontconfig.h>
30#include <unordered_map>
44 static wxString Version();
62 FF_RESULT FindFont(
const wxString& aFontName, wxString& aFontFile,
int& aFaceIndex,
bool aBold,
63 bool aItalic,
const std::vector<wxString>* aEmbeddedFiles =
nullptr );
72 void ListFonts( std::vector<std::string>& aFonts,
const std::string& aDesiredLang,
73 const std::vector<wxString>* aEmbeddedFiles =
nullptr,
bool aForce =
false );
80 static void SetReporter(
REPORTER* aReporter );
98 bool isLanguageMatch(
const wxString& aSearchLang,
const wxString& aSupportedLang );
107 std::unordered_map<std::string, std::string>& aFamStringMap );
116 std::string getFamilyStringByLang(
FONTCONFIG_PAT& APat,
const wxString& aDesiredLang );
125 std::string getFcString(
FONTCONFIG_PAT& aPat,
const char* aObj,
int aIdx );
A pure virtual class used to derive REPORTER objects from.
static REPORTER * s_reporter
std::map< std::string, FONTINFO > m_fontInfoCache
wxString m_fontCacheLastLang
KICOMMON_API fontconfig::FONTCONFIG * Fontconfig()
A simple wrapper to avoid exporing fontconfig in the header.