Blender  V2.93
Functions | Variables
freetypefont.c File Reference
#include <ft2build.h>
#include "MEM_guardedalloc.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLI_vfontdata.h"
#include "DNA_curve_types.h"
#include "DNA_packedFile_types.h"
#include "DNA_vfont_types.h"
#include "../../blenkernel/BKE_curve.h"

Go to the source code of this file.

Functions

static VCharfreetypechar_to_vchar (FT_Face face, FT_ULong charcode, VFontData *vfd)
 
static VCharobjchr_to_ftvfontdata (VFont *vfont, FT_ULong charcode)
 
static VFontDataobjfnt_to_ftvfontdata (PackedFile *pf)
 
static int check_freetypefont (PackedFile *pf)
 
VFontDataBLI_vfontdata_from_freetypefont (PackedFile *pf)
 
static void * vfontdata_copy_characters_value_cb (const void *src)
 
VFontDataBLI_vfontdata_copy (const VFontData *vfont_src, const int UNUSED(flag))
 
VCharBLI_vfontchar_from_freetypefont (VFont *vfont, unsigned long character)
 
VCharBLI_vfontchar_copy (const VChar *vchar_src, const int UNUSED(flag))
 

Variables

static FT_Library library
 
static FT_Error err
 

Function Documentation

◆ BLI_vfontchar_copy()

VChar* BLI_vfontchar_copy ( const VChar vchar_src,
const int   UNUSEDflag 
)

◆ BLI_vfontchar_from_freetypefont()

VChar* BLI_vfontchar_from_freetypefont ( VFont vfont,
unsigned long  character 
)

Definition at line 461 of file freetypefont.c.

References err, library, NULL, and objchr_to_ftvfontdata().

Referenced by vfont_to_curve().

◆ BLI_vfontdata_copy()

VFontData* BLI_vfontdata_copy ( const VFontData vfont_src,
const int   UNUSEDflag 
)

◆ BLI_vfontdata_from_freetypefont()

VFontData* BLI_vfontdata_from_freetypefont ( PackedFile pf)

Construct a new VFontData structure from Freetype font data in a PackedFile.

Parameters
pfThe font data.
Return values
Anew VFontData structure, or NULL if unable to load.

Definition at line 420 of file freetypefont.c.

References check_freetypefont(), err, library, NULL, objfnt_to_ftvfontdata(), and pf.

Referenced by BKE_vfont_load(), vfont_get_data(), and vfont_init_data().

◆ check_freetypefont()

static int check_freetypefont ( PackedFile pf)
static

Definition at line 379 of file freetypefont.c.

References err, library, and pf.

Referenced by BLI_vfontdata_from_freetypefont().

◆ freetypechar_to_vchar()

static VChar* freetypechar_to_vchar ( FT_Face  face,
FT_ULong  charcode,
VFontData vfd 
)
static

◆ objchr_to_ftvfontdata()

static VChar* objchr_to_ftvfontdata ( VFont vfont,
FT_ULong  charcode 
)
static

◆ objfnt_to_ftvfontdata()

static VFontData* objfnt_to_ftvfontdata ( PackedFile pf)
static

◆ vfontdata_copy_characters_value_cb()

static void* vfontdata_copy_characters_value_cb ( const void *  src)
static

Definition at line 444 of file freetypefont.c.

References BLI_vfontchar_copy().

Referenced by BLI_vfontdata_copy().

Variable Documentation

◆ err

FT_Error err
static

◆ library

FT_Library library
static