KiCad PCB EDA Suite
|
#include <mutex>
#include <font/fontconfig.h>
#include <wx/log.h>
#include <trace_helpers.h>
#include <string_utils.h>
#include <macros.h>
#include <cstdint>
#include <reporter.h>
#include <embedded_files.h>
Go to the source code of this file.
Classes | |
struct | fontconfig::FONTCONFIG_PAT |
A simple wrapper to avoid exporting fontconfig in the header. More... | |
Functions | |
static void | bootstrapFc () |
This is simply a wrapper to call FcInit() with SEH for Windows. | |
FONTCONFIG * | Fontconfig () |
Variables | |
static FONTCONFIG * | g_config = nullptr |
static bool | g_fcInitSuccess = false |
static std::mutex | g_fontConfigMutex |
|
static |
This is simply a wrapper to call FcInit() with SEH for Windows.
SEH on Windows can only be used in functions without objects that might be unwound (basically objects with destructors). For example, new FONTCONFIG() in Fontconfig() is creating a object with a destructor that might need to be unwound. MSVC catches this and throws a compile error.
Definition at line 79 of file fontconfig.cpp.
References g_fcInitSuccess.
Referenced by Fontconfig().
FONTCONFIG * Fontconfig | ( | ) |
Definition at line 103 of file fontconfig.cpp.
References bootstrapFc(), and g_config.
Referenced by EDA_TEXT_DESC::EDA_TEXT_DESC(), FONT_CHOICE::FONT_CHOICE(), FIELDS_GRID_TABLE::initGrid(), KIFONT::OUTLINE_FONT::LoadFont(), and SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic().
|
static |
Definition at line 38 of file fontconfig.cpp.
Referenced by Fontconfig().
|
static |
Definition at line 39 of file fontconfig.cpp.
Referenced by bootstrapFc(), fontconfig::FONTCONFIG::FindFont(), and fontconfig::FONTCONFIG::ListFonts().
|
static |
Definition at line 42 of file fontconfig.cpp.
Referenced by fontconfig::FONTCONFIG::SetReporter().