Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_font.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| typedef struct EditFontSelBox { | typedef struct EditFontSelBox { | ||||
| float x, y, w, h; | float x, y, w, h; | ||||
| float rot; | float rot; | ||||
| } EditFontSelBox; | } EditFontSelBox; | ||||
| typedef struct EditFont { | typedef struct EditFont { | ||||
| wchar_t *textbuf; | char32_t *textbuf; | ||||
| struct CharInfo *textbufinfo; | struct CharInfo *textbufinfo; | ||||
| /* array of rectangles & rotation */ | /* array of rectangles & rotation */ | ||||
| float textcurs[4][2]; | float textcurs[4][2]; | ||||
| EditFontSelBox *selboxes; | EditFontSelBox *selboxes; | ||||
| int selboxes_len; | int selboxes_len; | ||||
| /* positional vars relative to the textbuf, textbufinfo (not utf8 bytes) | /* positional vars relative to the textbuf, textbufinfo (not utf8 bytes) | ||||
| Show All 19 Lines | |||||
| struct VFont *BKE_vfont_load_exists(struct Main *bmain, const char *filepath); | struct VFont *BKE_vfont_load_exists(struct Main *bmain, const char *filepath); | ||||
| void BKE_vfont_make_local(struct Main *bmain, struct VFont *vfont, const bool lib_local); | void BKE_vfont_make_local(struct Main *bmain, struct VFont *vfont, const bool lib_local); | ||||
| bool BKE_vfont_to_curve_ex(struct Object *ob, | bool BKE_vfont_to_curve_ex(struct Object *ob, | ||||
| struct Curve *cu, | struct Curve *cu, | ||||
| int mode, | int mode, | ||||
| struct ListBase *r_nubase, | struct ListBase *r_nubase, | ||||
| const wchar_t **r_text, | const char32_t **r_text, | ||||
| int *r_text_len, | int *r_text_len, | ||||
| bool *r_text_free, | bool *r_text_free, | ||||
| struct CharTrans **r_chartransdata); | struct CharTrans **r_chartransdata); | ||||
| bool BKE_vfont_to_curve_nubase(struct Object *ob, int mode, struct ListBase *r_nubase); | 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); | bool BKE_vfont_to_curve(struct Object *ob, int mode); | ||||
| int BKE_vfont_select_get(struct Object *ob, int *r_start, int *r_end); | 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_select_clamp(struct Object *ob); | ||||
| void BKE_vfont_clipboard_free(void); | void BKE_vfont_clipboard_free(void); | ||||
| void BKE_vfont_clipboard_set(const wchar_t *text_buf, | void BKE_vfont_clipboard_set(const char32_t *text_buf, | ||||
| const struct CharInfo *info_buf, | const struct CharInfo *info_buf, | ||||
| const size_t len); | const size_t len); | ||||
| void BKE_vfont_clipboard_get(wchar_t **r_text_buf, | void BKE_vfont_clipboard_get(char32_t **r_text_buf, | ||||
| struct CharInfo **r_info_buf, | struct CharInfo **r_info_buf, | ||||
| size_t *r_len_utf8, | size_t *r_len_utf8, | ||||
| size_t *r_len_wchar); | size_t *r_len_wchar); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||