Blender V2.61 - r43446
Defines | Functions | Variables

freetypefont.c File Reference

#include <ft2build.h>
#include "MEM_guardedalloc.h"
#include "BLI_vfontdata.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_font.h"
#include "DNA_vfont_types.h"
#include "DNA_packedFile_types.h"
#include "DNA_curve_types.h"

Go to the source code of this file.

Defines

#define myMIN_ASCII   32
#define myMAX_ASCII   255

Functions

static void freetypechar_to_vchar (FT_Face face, FT_ULong charcode, VFontData *vfd)
static int objchr_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)
int BLI_vfontchar_from_freetypefont (VFont *vfont, unsigned long character)

Variables

static FT_Library library
static FT_Error err

Detailed Description

Definition in file freetypefont.c.


Define Documentation

#define myMAX_ASCII   255

Definition at line 65 of file freetypefont.c.

#define myMIN_ASCII   32

Definition at line 64 of file freetypefont.c.


Function Documentation

int BLI_vfontchar_from_freetypefont ( VFont vfont,
unsigned long  character 
)

Definition at line 498 of file freetypefont.c.

References err, FALSE, library, objchr_to_ftvfontdata(), and TRUE.

Referenced by BKE_text_to_curve().

VFontData* BLI_vfontdata_from_freetypefont ( struct 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 474 of file freetypefont.c.

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

Referenced by load_vfont(), and vfont_get_data().

static int check_freetypefont ( PackedFile pf) [static]

Definition at line 414 of file freetypefont.c.

References PackedFile::data, err, library, and PackedFile::size.

Referenced by BLI_vfontdata_from_freetypefont().

static void freetypechar_to_vchar ( FT_Face  face,
FT_ULong  charcode,
VFontData vfd 
) [static]
static int objchr_to_ftvfontdata ( VFont vfont,
FT_ULong  charcode 
) [static]
static VFontData* objfnt_to_ftvfontdata ( PackedFile pf) [static]

Variable Documentation

FT_Error err [static]
FT_Library library [static]