Blender  V3.3
Classes | Typedefs | Functions
BKE_vfont.h File Reference

Go to the source code of this file.

Classes

struct  CharTrans
 
struct  EditFontSelBox
 
struct  EditFont
 

Typedefs

typedef struct EditFontSelBox EditFontSelBox
 
typedef struct EditFont EditFont
 

Functions

bool BKE_vfont_is_builtin (const struct VFont *vfont)
 
void BKE_vfont_builtin_register (const void *mem, int size)
 
void BKE_vfont_free_data (struct VFont *vfont)
 
struct VFontBKE_vfont_builtin_get (void)
 
struct VFontBKE_vfont_load (struct Main *bmain, const char *filepath)
 
struct VFontBKE_vfont_load_exists_ex (struct Main *bmain, const char *filepath, bool *r_exists)
 
struct VFontBKE_vfont_load_exists (struct Main *bmain, const char *filepath)
 
bool BKE_vfont_to_curve_ex (struct Object *ob, struct Curve *cu, int mode, struct ListBase *r_nubase, const char32_t **r_text, int *r_text_len, bool *r_text_free, struct CharTrans **r_chartransdata)
 
bool BKE_vfont_to_curve_nubase (struct Object *ob, int mode, struct ListBase *r_nubase)
 
bool BKE_vfont_to_curve (struct Object *ob, int mode)
 
void BKE_vfont_build_char (struct Curve *cu, struct ListBase *nubase, unsigned int character, struct CharInfo *info, float ofsx, float ofsy, float rot, int charidx, float fsize)
 
int BKE_vfont_select_get (struct Object *ob, int *r_start, int *r_end)
 
void BKE_vfont_select_clamp (struct Object *ob)
 
void BKE_vfont_clipboard_free (void)
 
void BKE_vfont_clipboard_set (const char32_t *text_buf, const struct CharInfo *info_buf, size_t len)
 
void BKE_vfont_clipboard_get (char32_t **r_text_buf, struct CharInfo **r_info_buf, size_t *r_len_utf8, size_t *r_len_utf32)
 

Typedef Documentation

◆ EditFont

typedef struct EditFont EditFont

◆ EditFontSelBox

Function Documentation

◆ BKE_vfont_build_char()

void BKE_vfont_build_char ( struct Curve cu,
struct ListBase nubase,
unsigned int  character,
struct CharInfo info,
float  ofsx,
float  ofsy,
float  rot,
int  charidx,
float  fsize 
)

◆ BKE_vfont_builtin_get()

struct VFont* BKE_vfont_builtin_get ( void  )

◆ BKE_vfont_builtin_register()

void BKE_vfont_builtin_register ( const void mem,
int  size 
)

Definition at line 228 of file vfont.c.

References builtin_font_data, builtin_font_size, and size().

Referenced by main(), and BlendfileLoadingBaseTest::SetUpTestCase().

◆ BKE_vfont_clipboard_free()

void BKE_vfont_clipboard_free ( void  )

Definition at line 1762 of file vfont.c.

References g_vfont_clipboard, and MEM_SAFE_FREE.

Referenced by BKE_vfont_clipboard_set(), paste_text_exec(), and WM_exit_ex().

◆ BKE_vfont_clipboard_get()

void BKE_vfont_clipboard_get ( char32_t **  r_text_buf,
struct CharInfo **  r_info_buf,
size_t *  r_len_utf8,
size_t *  r_len_utf32 
)

Definition at line 1800 of file vfont.c.

References g_vfont_clipboard.

Referenced by copy_selection(), paste_selection(), and paste_text_exec().

◆ BKE_vfont_clipboard_set()

void BKE_vfont_clipboard_set ( const char32_t *  text_buf,
const struct CharInfo info_buf,
size_t  len 
)

Referenced by copy_selection().

◆ BKE_vfont_free_data()

void BKE_vfont_free_data ( struct VFont vfont)

◆ BKE_vfont_is_builtin()

bool BKE_vfont_is_builtin ( const struct VFont vfont)

◆ BKE_vfont_load()

struct VFont* BKE_vfont_load ( struct Main bmain,
const char *  filepath 
)

◆ BKE_vfont_load_exists()

struct VFont* BKE_vfont_load_exists ( struct Main bmain,
const char *  filepath 
)

Definition at line 394 of file vfont.c.

References BKE_vfont_load_exists_ex(), and NULL.

◆ BKE_vfont_load_exists_ex()

struct VFont* BKE_vfont_load_exists_ex ( struct Main bmain,
const char *  filepath,
bool r_exists 
)

◆ BKE_vfont_select_clamp()

void BKE_vfont_select_clamp ( struct Object ob)

◆ BKE_vfont_select_get()

int BKE_vfont_select_get ( struct Object ob,
int *  r_start,
int *  r_end 
)

◆ BKE_vfont_to_curve()

bool BKE_vfont_to_curve ( struct Object ob,
int  mode 
)
Warning
Expects to have access to evaluated data (i.e. passed object should be evaluated one).

Definition at line 1744 of file vfont.c.

References BKE_vfont_to_curve_ex(), Object::data, NULL, and Curve::nurb.

Referenced by move_cursor(), and text_update_edited().

◆ BKE_vfont_to_curve_ex()

bool BKE_vfont_to_curve_ex ( struct Object ob,
struct Curve cu,
int  mode,
struct ListBase r_nubase,
const char32_t **  r_text,
int *  r_text_len,
bool r_text_free,
struct CharTrans **  r_chartransdata 
)

◆ BKE_vfont_to_curve_nubase()

bool BKE_vfont_to_curve_nubase ( struct Object ob,
int  mode,
struct ListBase r_nubase 
)