Blender  V2.93
Classes | Typedefs | Functions
BKE_font.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 (struct VFont *vfont)
 
void BKE_vfont_builtin_register (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)
 
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, const 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_builtin_get()

struct VFont* BKE_vfont_builtin_get ( void  )

◆ BKE_vfont_builtin_register()

void BKE_vfont_builtin_register ( void *  mem,
int  size 
)

Definition at line 227 of file font.c.

References builtin_font_data, builtin_font_size, and size().

Referenced by main().

◆ BKE_vfont_clipboard_free()

void BKE_vfont_clipboard_free ( void  )

Definition at line 1761 of file font.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 1799 of file font.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,
const 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 ( 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 393 of file font.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 ( Object ob,
int  mode 
)

Warning: expects to have access to evaluated data (i.e. passed object should be evaluated one...).

Definition at line 1743 of file font.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 
)