KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fontconfig.cpp File Reference
#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 exporing fontconfig in the header. More...
 

Functions

static void bootstrapFc ()
 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 unwinded (basically objects with destructors) For example, new FONTCONFIG() in Fontconfig() is creating a object with a destructor that might need to be unwinded.
 
FONTCONFIGFontconfig ()
 

Variables

static FONTCONFIGg_config = nullptr
 
static bool g_fcInitSuccess = false
 

Function Documentation

◆ bootstrapFc()

static void bootstrapFc ( )
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 unwinded (basically objects with destructors) For example, new FONTCONFIG() in Fontconfig() is creating a object with a destructor that might need to be unwinded.

MSVC catches this and throws a compile error

Definition at line 77 of file fontconfig.cpp.

References g_fcInitSuccess.

Referenced by Fontconfig().

◆ Fontconfig()

Variable Documentation

◆ g_config

FONTCONFIG* g_config = nullptr
static

Definition at line 39 of file fontconfig.cpp.

Referenced by Fontconfig().

◆ g_fcInitSuccess

bool g_fcInitSuccess = false
static