Blender
V3.3
|
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 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) |
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 struct EditFontSelBox EditFontSelBox |
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 | ||
) |
Definition at line 495 of file vfont.c.
References Nurb::bezt, BLI_addtail(), Nurb::bp, Nurb::charidx, cosf, CU_CHINFO_SMALLCAPS_CHECK, CU_SMOOTH, find_vfont_char(), ListBase::first, Nurb::flag, CharInfo::flag, Nurb::knotsu, Nurb::knotsv, Nurb::mat_nr, CharInfo::mat_nr, MEM_freeN, MEM_malloc_arrayN, MEM_mallocN, Nurb::next, NULL, VChar::nurbsbase, Nurb::pntsu, Nurb::resolu, Curve::resolu, rot, Curve::shear, sinf, Curve::smallcaps_scale, BezTriple::vec, vfont_get_data(), which_vfont(), and x.
Referenced by blender::nodes::node_geo_string_to_curves_cc::create_curve_instances(), and vfont_to_curve().
Definition at line 413 of file vfont.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(), blender::nodes::node_geo_string_to_curves_cc::node_init(), and txt_add_object().
Definition at line 228 of file vfont.c.
References builtin_font_data, builtin_font_size, and size().
Referenced by main(), and BlendfileLoadingBaseTest::SetUpTestCase().
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().
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().
void BKE_vfont_clipboard_set | ( | const char32_t * | text_buf, |
const struct CharInfo * | info_buf, | ||
size_t | len | ||
) |
Referenced by copy_selection().
Definition at line 188 of file vfont.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().
Definition at line 223 of file vfont.c.
References VFont::filepath, FO_BUILTIN_NAME, and STREQ.
Referenced by BKE_packedfile_pack_all(), BKE_vfont_builtin_get(), open_invoke(), vfont_foreach_path(), vfont_get_data(), and vfont_to_curve().
Definition at line 316 of file vfont.c.
References BKE_libblock_alloc(), BKE_main_blendfile_path(), BKE_packedfile_free(), BKE_packedfile_new(), BKE_vfontdata_from_freetypefont(), BLI_split_file_part(), BLI_strncpy(), VFont::data, FILE_MAXFILE, VFont::filepath, FO_BUILTIN_NAME, G, G_FILE_AUTOPACK, get_builtin_packedfile(), ID_VF, blender::bke::attribute_accessor_functions::is_builtin(), 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 394 of file vfont.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 366 of file vfont.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().
Definition at line 658 of file vfont.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 618 of file vfont.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().
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().
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 1709 of file vfont.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(), blender::nodes::node_geo_string_to_curves_cc::get_text_layout(), make_duplis_font(), and object_convert_exec().
Definition at line 1737 of file vfont.c.
References BKE_vfont_to_curve_ex(), BLI_assert, Object::data, NULL, OB_FONT, and Object::type.
Referenced by curve_from_font_object(), and evaluate_curve_type_object().