|
Blender
V2.93
|
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 VFont * | BKE_vfont_builtin_get (void) |
| struct VFont * | BKE_vfont_load (struct Main *bmain, const char *filepath) |
| struct VFont * | BKE_vfont_load_exists_ex (struct Main *bmain, const char *filepath, bool *r_exists) |
| struct VFont * | BKE_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 struct EditFontSelBox EditFontSelBox |
| struct VFont* BKE_vfont_builtin_get | ( | void | ) |
Definition at line 412 of file font.c.
References BKE_vfont_is_builtin(), BKE_vfont_load(), FO_BUILTIN_NAME, G_MAIN, VFont::id, and ID::next.
Referenced by BKE_curve_init(), font_unlink_exec(), and txt_add_object().
| 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().
| 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().
| 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().
| void BKE_vfont_clipboard_set | ( | const char32_t * | text_buf, |
| const struct CharInfo * | info_buf, | ||
| const size_t | len | ||
| ) |
Referenced by copy_selection().
| void BKE_vfont_free_data | ( | struct VFont * | vfont | ) |
Definition at line 187 of file font.c.
References Nurb::bezt, BKE_packedfile_free(), BLI_freelinkN(), BLI_ghash_free(), BLI_ghashIterator_getValue(), VFontData::characters, VFont::data, ListBase::first, GHASH_ITER, MEM_freeN, NULL, VChar::nurbsbase, and VFont::temp_pf.
Referenced by vfont_free_data().
| bool BKE_vfont_is_builtin | ( | struct VFont * | vfont | ) |
Definition at line 222 of file font.c.
References VFont::filepath, FO_BUILTIN_NAME, and STREQ.
Referenced by BKE_bpath_traverse_id(), BKE_packedfile_pack_all(), BKE_vfont_builtin_get(), open_invoke(), vfont_get_data(), and vfont_to_curve().
Definition at line 315 of file font.c.
References BKE_libblock_alloc(), BKE_main_blendfile_path(), BKE_packedfile_free(), BKE_packedfile_new(), BLI_split_file_part(), BLI_strncpy(), BLI_vfontdata_from_freetypefont(), VFont::data, FILE_MAXFILE, VFont::filepath, FO_BUILTIN_NAME, G, G_FILE_AUTOPACK, get_builtin_packedfile(), ID_VF, VFontData::name, NULL, VFont::packedfile, pf, STREQ, and VFont::temp_pf.
Referenced by BKE_vfont_builtin_get(), BKE_vfont_load_exists_ex(), and font_open_exec().
Definition at line 393 of file font.c.
References BKE_vfont_load_exists_ex(), and NULL.
| struct VFont* BKE_vfont_load_exists_ex | ( | struct Main * | bmain, |
| const char * | filepath, | ||
| bool * | r_exists | ||
| ) |
Definition at line 365 of file font.c.
References BKE_main_blendfile_path(), BKE_vfont_load(), BLI_path_abs(), BLI_path_cmp, BLI_strncpy(), FILE_MAX, VFont::filepath, ListBase::first, Main::fonts, VFont::id, ID_BLEND_PATH, id_us_plus(), ID::next, and str.
Referenced by BKE_vfont_load_exists().
| void BKE_vfont_select_clamp | ( | struct Object * | ob | ) |
Definition at line 657 of file font.c.
References BLI_assert, CLAMP_MAX, Object::data, Curve::editfont, EditFont::len, OB_FONT, EditFont::pos, EditFont::selend, EditFont::selstart, and Object::type.
Referenced by delete_exec(), and ED_curve_editfont_make().
| int BKE_vfont_select_get | ( | struct Object * | ob, |
| int * | r_start, | ||
| int * | r_end | ||
| ) |
Definition at line 617 of file font.c.
References BLI_assert, Object::data, Curve::editfont, EditFont::len, NULL, OB_FONT, EditFont::pos, EditFont::selend, EditFont::selstart, and Object::type.
Referenced by change_spacing_exec(), copy_selection(), cut_text_exec(), delete_exec(), font_paste_wchar(), kill_selection(), material_slot_assign_exec(), set_case(), set_style(), toggle_style_exec(), and 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().
| 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 | ||
| ) |
Definition at line 1704 of file font.c.
References data, ELEM, FONT_TO_CURVE_SCALE_ITERATIONS, Curve::totbox, vfont_to_curve(), VFONT_TO_CURVE_BISECT, VFONT_TO_CURVE_INIT, and VFONT_TO_CURVE_SCALE_ONCE.
Referenced by BKE_curve_minmax(), BKE_vfont_to_curve(), BKE_vfont_to_curve_nubase(), make_duplis_font(), and object_convert_exec().
Definition at line 1732 of file font.c.
References BKE_vfont_to_curve_ex(), BLI_assert, Object::data, NULL, OB_FONT, and Object::type.
Referenced by curve_from_font_object(), and do_makeDispListCurveTypes().