|
Blender
V2.59
|
#include <wchar.h>Go to the source code of this file.
Classes | |
| struct | chartrans |
| struct | SelBox |
| struct | EditFont |
Typedefs | |
| typedef struct SelBox | SelBox |
| typedef struct EditFont | EditFont |
Functions | |
| void | BKE_font_register_builtin (void *mem, int size) |
| void | free_vfont (struct VFont *sc) |
| void | free_ttfont (void) |
| struct VFont * | get_builtin_font (void) |
| struct VFont * | load_vfont (const char *name) |
| struct TmpFont * | vfont_find_tmpfont (struct VFont *vfont) |
| struct chartrans * | BKE_text_to_curve (struct Scene *scene, struct Object *ob, int mode) |
| int | BKE_font_getselection (struct Object *ob, int *start, int *end) |
| size_t | chtoutf8 (const unsigned long c, char o[4]) |
| void | wcs2utf8s (char *dst, const wchar_t *src) |
| size_t | wcsleninu8 (wchar_t *src) |
| size_t | utf8towchar (wchar_t *w, const char *c) |
Definition in file BKE_font.h.
| int BKE_font_getselection | ( | struct Object * | ob, |
| int * | start, | ||
| int * | end | ||
| ) |
Definition at line 632 of file font.c.
References Object::data, Curve::editfont, NULL, OB_FONT, Curve::selend, Curve::selstart, and Object::type.
Referenced by BKE_text_to_curve(), copy_selection(), cut_text_exec(), delete_exec(), draw_object(), kill_selection(), material_slot_assign_exec(), set_style(), and toggle_style_exec().
| void BKE_font_register_builtin | ( | void * | mem, |
| int | size | ||
| ) |
Definition at line 237 of file font.c.
References builtin_font_data, builtin_font_size, and size().
Referenced by main().
Definition at line 665 of file font.c.
References KDL::atan2(), BKE_font_getselection(), BLI_vfontchar_from_freetypefont(), build_underline(), buildchar(), ceilf, char_width(), CLAMP(), co, copy_m3_m4(), cos(), CU_CHINFO_SMALLCAPS, CU_CHINFO_SMALLCAPS_CHECK, CU_CHINFO_UNDERLINE, CU_CHINFO_WRAP, CU_FLUSH, CU_FOLLOW, CU_JUSTIFY, CU_LEFT, CU_MIDDLE, CU_PATH, CU_RIGHT, Object::data, chartrans::dobreak, Curve::editfont, find_vfont_char(), CharInfo::flag, Curve::flag, FO_BUILTIN_NAME, FO_CURSDOWN, FO_CURSUP, FO_DUPLI, FO_EDIT, FO_PAGEDOWN, FO_PAGEUP, FO_SELCHANGE, freeNurblist(), Curve::fsize, SelBox::h, TextBox::h, i, invert_m4_m4(), CharInfo::kern, Curve::len, Curve::linedist, Curve::lines, Object::loc, M_PI, makeDispListCurveTypes(), CharInfo::mat_nr, MAX2, MAXTEXTBOX, MEM_callocN(), MEM_freeN(), MEM_mallocN(), mul_m3_m3m3(), mul_v3_fl(), mul_v3_m4v3(), VFont::name, normalize_v3(), NULL, Curve::nurb, OB_CURVE, OB_FONT, Object::obmat, Curve::path, Curve::pos, Curve::selboxes, Curve::sepchar, si, sin(), Curve::spacemode, Curve::spacing, Curve::str, Curve::strinfo, Curve::tb, EditFont::textbufinfo, EditFont::textcurs, Curve::textoncurve, Curve::totbox, Object::totcol, Path::totdist, Object::type, Curve::ulheight, Curve::ulpos, utf8slen(), utf8towchar(), Curve::vfont, vfont_get_data(), SelBox::w, TextBox::w, where_on_path(), which_vfont(), Curve::wordspace, SelBox::x, TextBox::x, chartrans::xof, Curve::xof, SelBox::y, TextBox::y, chartrans::yof, and Curve::yof.
Referenced by copy_attr(), do_makeDispListCurveTypes(), font_duplilist(), move_cursor(), and text_update_edited().
| size_t chtoutf8 | ( | const unsigned long | c, |
| char | o[4] | ||
| ) |
Definition at line 70 of file font.c.
Referenced by wcs2utf8s(), and wcsleninu8().
| void free_ttfont | ( | void | ) |
Definition at line 258 of file font.c.
References BLI_freelistN(), ListBase::first, freePackedFile(), TmpFont::next, NULL, TmpFont::pf, and TmpFont::vfont.
Referenced by WM_exit(), and WM_read_homefile().
| void free_vfont | ( | struct VFont * | sc | ) |
Definition at line 206 of file font.c.
References Nurb::bezt, BLI_freelinkN(), VFontData::characters, VFont::data, ListBase::first, freePackedFile(), MEM_freeN(), NULL, VChar::nurbsbase, and VFont::packedfile.
Referenced by free_libblock().
| struct VFont* get_builtin_font | ( | void | ) | [read] |
Definition at line 434 of file font.c.
References ListBase::first, FO_BUILTIN_NAME, G, VFont::id, load_vfont(), Global::main, VFont::name, ID::next, and Main::vfont.
Referenced by add_curve(), font_unlink_exec(), and txt_add_object().
| struct VFont* load_vfont | ( | const char * | name | ) | [read] |
Definition at line 354 of file font.c.
References alloc_libblock(), BLI_addtail(), BLI_splitdirstring(), BLI_strncpy(), BLI_vfontdata_from_freetypefont(), VFont::data, FILE_MAXDIR, FILE_MAXFILE, Global::fileflags, FO_BUILTIN_NAME, freePackedFile(), G, G_AUTOPACK, get_builtin_packedfile(), VFont::id, ID_VF, Global::main, MEM_callocN(), VFont::name, VFontData::name, ID::name, newPackedFile(), NULL, VFont::packedfile, pf, TmpFont::pf, TmpFont::vfont, and Main::vfont.
Referenced by get_builtin_font(), and open_exec().
| size_t utf8towchar | ( | wchar_t * | w, |
| const char * | c | ||
| ) |
Definition at line 167 of file font.c.
References NULL.
Referenced by BKE_text_to_curve(), BPY_python_start(), insert_text_exec(), make_editText(), paste_file(), and PyC_SetHomePath().
Definition at line 270 of file font.c.
References ListBase::first, TmpFont::next, NULL, and TmpFont::vfont.
Referenced by objchr_to_ftvfontdata(), and vfont_get_data().
| void wcs2utf8s | ( | char * | dst, |
| const wchar_t * | src | ||
| ) |
Definition at line 103 of file font.c.
References chtoutf8().
Referenced by insert_text_invoke(), and update_string().
| size_t wcsleninu8 | ( | wchar_t * | src | ) |