Flutter Engine
The Flutter Engine
Macros | Functions
SkFontConfigInterface_direct.cpp File Reference
#include "include/core/SkFontStyle.h"
#include "include/core/SkStream.h"
#include "include/core/SkString.h"
#include "include/core/SkTypeface.h"
#include "include/private/base/SkFixed.h"
#include "include/private/base/SkMutex.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "include/private/base/SkTemplates.h"
#include "src/base/SkAutoMalloc.h"
#include "src/base/SkBuffer.h"
#include "src/ports/SkFontConfigInterface_direct.h"
#include <fontconfig/fontconfig.h>
#include <unistd.h>

Go to the source code of this file.

Macros

#define FC_WEIGHT_DEMILIGHT   65
 
#define kMaxFontFamilyLength   2048
 

Functions

static const char * get_string (FcPattern *pattern, const char field[], int index=0)
 

Macro Definition Documentation

◆ FC_WEIGHT_DEMILIGHT

#define FC_WEIGHT_DEMILIGHT   65

Definition at line 393 of file SkFontConfigInterface_direct.cpp.

◆ kMaxFontFamilyLength

#define kMaxFontFamilyLength   2048

Definition at line 490 of file SkFontConfigInterface_direct.cpp.

Function Documentation

◆ get_string()

static const char * get_string ( FcPattern *  pattern,
const char  field[],
int  index = 0 
)
static

Definition at line 151 of file SkFontConfigInterface_direct.cpp.

151 {
152 char* name;
153 if (FcPatternGetString(pattern, field, index, (FcChar8**)&name) != FcResultMatch) {
154 name = nullptr;
155 }
156 return name;
157}
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32