Blender  V2.93
Classes | Typedefs | Functions
BLI_vfontdata.h File Reference

A structure to represent vector fonts, and to load them from PostScript fonts. More...

#include "DNA_listBase.h"

Go to the source code of this file.

Classes

struct  VFontData
 
struct  VChar
 

Typedefs

typedef struct VFontData VFontData
 
typedef struct VChar VChar
 

Functions

VFontDataBLI_vfontdata_from_freetypefont (struct PackedFile *pf)
 
VFontDataBLI_vfontdata_copy (const VFontData *vfont_src, const int flag)
 
VCharBLI_vfontchar_from_freetypefont (struct VFont *vfont, unsigned long character)
 
VCharBLI_vfontchar_copy (const VChar *vchar_src, const int flag)
 

Detailed Description

A structure to represent vector fonts, and to load them from PostScript fonts.

Definition in file BLI_vfontdata.h.

Typedef Documentation

◆ VChar

typedef struct VChar VChar

◆ VFontData

typedef struct VFontData VFontData

Function Documentation

◆ BLI_vfontchar_copy()

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

◆ BLI_vfontchar_from_freetypefont()

VChar* BLI_vfontchar_from_freetypefont ( struct 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  flag 
)

Referenced by vfont_copy_data().

◆ 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().