21#ifndef KICAD_FONTCONFIG_H
22#define KICAD_FONTCONFIG_H
24#include <fontconfig/fontconfig.h>
30#include <unordered_map>
43 static wxString Version();
61 FF_RESULT FindFont(
const wxString& aFontName, wxString& aFontFile,
int& aFaceIndex,
bool aBold,
bool aItalic );
68 void ListFonts( std::vector<std::string>& aFonts,
const std::string& aDesiredLang );
85 bool isLanguageMatch(
const wxString& aSearchLang,
const wxString& aSupportedLang );
94 std::unordered_map<std::string, std::string>& aFamStringMap );
103 std::string getFamilyStringByLang(
FONTCONFIG_PAT& APat,
const wxString& aDesiredLang );
112 std::string getFcString(
FONTCONFIG_PAT& aPat,
const char* aObj,
int aIdx );
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.