KiCad PCB EDA Suite
|
#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 |
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 78 of file fontconfig.cpp.
References g_fcInitSuccess.
Referenced by Fontconfig().
FONTCONFIG * Fontconfig | ( | ) |
Definition at line 102 of file fontconfig.cpp.
References bootstrapFc(), and g_config.
Referenced by FONT_CHOICE::FONT_CHOICE(), EDA_TEXT::GetFontIndex(), FIELDS_GRID_TABLE::initGrid(), KIFONT::OUTLINE_FONT::LoadFont(), SCH_IO_KICAD_SEXPR_PARSER::ParseSchematic(), EDA_TEXT::SetFontIndex(), SCH_PROPERTIES_PANEL::updateFontList(), and PCB_PROPERTIES_PANEL::updateLists().
|
static |
Definition at line 39 of file fontconfig.cpp.
Referenced by Fontconfig().
|
static |
Definition at line 40 of file fontconfig.cpp.
Referenced by bootstrapFc(), fontconfig::FONTCONFIG::FindFont(), and fontconfig::FONTCONFIG::ListFonts().