|
Blender
V2.59
|
Go to the source code of this file.
Defines | |
| #define | BLF_ROTATION (1<<0) |
| #define | BLF_CLIPPING (1<<1) |
| #define | BLF_SHADOW (1<<2) |
| #define | BLF_KERNING_DEFAULT (1<<3) |
| #define | BLF_MATRIX (1<<4) |
| #define | BLF_ASPECT (1<<5) |
Functions | |
| int | BLF_init (int points, int dpi) |
| void | BLF_exit (void) |
| void | BLF_cache_clear (void) |
| int | BLF_load (const char *name) |
| int | BLF_load_mem (const char *name, unsigned char *mem, int mem_size) |
| int | BLF_load_unique (const char *name) |
| int | BLF_load_mem_unique (const char *name, unsigned char *mem, int mem_size) |
| void | BLF_metrics_attach (int fontid, unsigned char *mem, int mem_size) |
| void | BLF_aspect (int fontid, float x, float y, float z) |
| void | BLF_position (int fontid, float x, float y, float z) |
| void | BLF_size (int fontid, int size, int dpi) |
| void | BLF_matrix (int fontid, double *m) |
| void | BLF_draw_default (float x, float y, float z, const char *str, size_t len) |
| void | BLF_draw_default_ascii (float x, float y, float z, const char *str, size_t len) |
| void | BLF_draw (int fontid, const char *str, size_t len) |
| void | BLF_draw_ascii (int fontid, const char *str, size_t len) |
| void | BLF_boundbox (int fontid, const char *str, struct rctf *box) |
| float | BLF_width (int fontid, const char *str) |
| float | BLF_height (int fontid, const char *str) |
| float | BLF_height_max (int fontid) |
| float | BLF_width_max (int fontid) |
| float | BLF_descender (int fontid) |
| float | BLF_ascender (int fontid) |
| void | BLF_width_and_height (int fontid, const char *str, float *width, float *height) |
| float | BLF_fixed_width (int fontid) |
| float | BLF_width_default (const char *str) |
| float | BLF_height_default (const char *str) |
| void | BLF_rotation_default (float angle) |
| void | BLF_enable_default (int option) |
| void | BLF_disable_default (int option) |
| void | BLF_rotation (int fontid, float angle) |
| void | BLF_clipping (int fontid, float xmin, float ymin, float xmax, float ymax) |
| void | BLF_clipping_default (float xmin, float ymin, float xmax, float ymax) |
| void | BLF_blur (int fontid, int size) |
| void | BLF_enable (int fontid, int option) |
| void | BLF_disable (int fontid, int option) |
| void | BLF_shadow (int fontid, int level, float r, float g, float b, float a) |
| void | BLF_shadow_offset (int fontid, int x, int y) |
| void | BLF_buffer (int fontid, float *fbuf, unsigned char *cbuf, int w, int h, int nch) |
| void | BLF_buffer_col (int fontid, float r, float g, float b, float a) |
| void | BLF_draw_buffer (int fontid, const char *str) |
| void | BLF_lang_init (void) |
| void | BLF_lang_set (const char *) |
| void | BLF_lang_encoding_name (const char *str) |
| void | BLF_lang_encoding (const char *str) |
| void | BLF_dir_add (const char *path) |
| void | BLF_dir_rem (const char *path) |
| char ** | BLF_dir_get (int *ndir) |
| void | BLF_dir_free (char **dirs, int count) |
Variables | |
| int | blf_mono_font |
| int | blf_mono_font_render |
Definition in file BLF_api.h.
| #define BLF_ASPECT (1<<5) |
Definition at line 213 of file BLF_api.h.
Referenced by BL_print_game_line(), blf_draw__start(), blf_font_height(), blf_font_width(), blf_font_width_and_height(), BLF_position(), and GPC_RenderTools::RenderText3D().
| #define BLF_CLIPPING (1<<1) |
Definition at line 209 of file BLF_api.h.
Referenced by blf_glyph_render(), BPyInit_blf(), UI_view2d_text_cache_draw(), uiStyleFontDrawExt(), and uiStyleFontDrawRotated().
| #define BLF_KERNING_DEFAULT (1<<3) |
Definition at line 211 of file BLF_api.h.
Referenced by blf_font_boundbox(), blf_font_buffer(), blf_font_draw(), blf_font_draw_ascii(), BPyInit_blf(), UI_DrawString(), UI_GetStringWidth(), ui_text_label_rightclip(), ui_text_leftclip(), ui_textedit_set_cursor_pos(), uiStyleFontDrawExt(), uiStyleFontDrawRotated(), and widget_draw_text().
| #define BLF_MATRIX (1<<4) |
Definition at line 212 of file BLF_api.h.
Referenced by BL_print_game_line(), blf_draw__start(), and GPC_RenderTools::RenderText3D().
| #define BLF_ROTATION (1<<0) |
Definition at line 208 of file BLF_api.h.
Referenced by blf_draw__start(), BPyInit_blf(), UI_view2d_scrollers_draw(), and uiStyleFontDrawRotated().
| #define BLF_SHADOW (1<<2) |
Definition at line 210 of file BLF_api.h.
Referenced by blf_glyph_render(), BPyInit_blf(), uiStyleFontDrawExt(), and uiStyleFontDrawRotated().
| float BLF_ascender | ( | int | fontid | ) |
Definition at line 619 of file blf.c.
References GlyphCacheBLF::ascender, BLF_get(), and FontBLF::glyph_cache.
Referenced by uiStyleFontDrawExt(), and uiStyleFontDrawRotated().
| void BLF_aspect | ( | int | fontid, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 329 of file blf.c.
References FontBLF::aspect, and BLF_get().
Referenced by BL_print_game_line(), py_blf_aspect(), and GPC_RenderTools::RenderText3D().
| void BLF_blur | ( | int | fontid, |
| int | size | ||
| ) |
Definition at line 411 of file blf.c.
References BLF_get(), FontBLF::blur, and size().
Referenced by py_blf_blur().
| void BLF_boundbox | ( | int | fontid, |
| const char * | str, | ||
| struct rctf * | box | ||
| ) |
Definition at line 518 of file blf.c.
References blf_font_boundbox(), and BLF_get().
| void BLF_buffer | ( | int | fontid, |
| float * | fbuf, | ||
| unsigned char * | cbuf, | ||
| int | w, | ||
| int | h, | ||
| int | nch | ||
| ) |
Definition at line 708 of file blf.c.
References FontBLF::b_cbuf, FontBLF::b_fbuf, FontBLF::bch, FontBLF::bh, BLF_get(), FontBLF::bw, and simple_enum_gen::w.
Referenced by BKE_stamp_buf(), and checker_board_text().
| void BLF_buffer_col | ( | int | fontid, |
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Definition at line 722 of file blf.c.
References FontBLF::b_col, BLF_get(), and g.
Referenced by BKE_stamp_buf(), and checker_board_text().
| void BLF_cache_clear | ( | void | ) |
Definition at line 111 of file blf.c.
References blf_glyph_cache_clear(), global_font_num, and i.
| void BLF_clipping | ( | int | fontid, |
| float | xmin, | ||
| float | ymin, | ||
| float | xmax, | ||
| float | ymax | ||
| ) |
Definition at line 657 of file blf.c.
References BLF_get(), FontBLF::clip_rec, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by py_blf_clipping(), uiStyleFontDrawExt(), and uiStyleFontDrawRotated().
| void BLF_clipping_default | ( | float | xmin, |
| float | ymin, | ||
| float | xmax, | ||
| float | ymax | ||
| ) |
Definition at line 670 of file blf.c.
References BLF_get(), FontBLF::clip_rec, global_font_default, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by UI_view2d_text_cache_draw().
| float BLF_descender | ( | int | fontid | ) |
Definition at line 607 of file blf.c.
References BLF_get(), GlyphCacheBLF::descender, and FontBLF::glyph_cache.
Referenced by BKE_stamp_buf().
| void BLF_dir_add | ( | const char * | path | ) |
Definition at line 71 of file blf_dir.c.
References blf_dir_find(), BLI_addhead(), BLI_strdup(), MEM_mallocN(), and DirBLF::path.
| void BLF_dir_free | ( | char ** | dirs, |
| int | count | ||
| ) |
Definition at line 119 of file blf_dir.c.
References i, and MEM_freeN().
| char** BLF_dir_get | ( | int * | ndir | ) |
Definition at line 96 of file blf_dir.c.
References BLI_countlist(), BLI_strdup(), ListBase::first, i, MEM_mallocN(), DirBLF::next, NULL, p, and DirBLF::path.
| void BLF_dir_rem | ( | const char * | path | ) |
Definition at line 84 of file blf_dir.c.
References blf_dir_find(), BLI_remlink(), MEM_freeN(), and DirBLF::path.
| void BLF_disable | ( | int | fontid, |
| int | option | ||
| ) |
Definition at line 302 of file blf.c.
References BLF_get(), and FontBLF::flags.
Referenced by BL_print_game_line(), py_blf_disable(), GPC_RenderTools::RenderText3D(), UI_DrawString(), UI_GetStringWidth(), ui_text_label_rightclip(), ui_text_leftclip(), ui_textedit_set_cursor_pos(), uiStyleFontDrawExt(), uiStyleFontDrawRotated(), and widget_draw_text().
| void BLF_disable_default | ( | int | option | ) |
Definition at line 320 of file blf.c.
References BLF_get(), FontBLF::flags, and global_font_default.
Referenced by UI_view2d_scrollers_draw(), and UI_view2d_text_cache_draw().
| void BLF_draw | ( | int | fontid, |
| const char * | str, | ||
| size_t | len | ||
| ) |
Definition at line 498 of file blf.c.
References blf_draw__end(), blf_draw__start(), blf_font_draw(), and BLF_get().
Referenced by BL_print_game_line(), BLF_draw_default(), console_draw_string(), loggerwindow_do_draw(), py_blf_draw(), GPC_RenderTools::RenderText3D(), text_font_draw(), text_font_draw_character(), UI_DrawString(), uiStyleFontDrawExt(), uiStyleFontDrawRotated(), and widget_draw_text().
| void BLF_draw_ascii | ( | int | fontid, |
| const char * | str, | ||
| size_t | len | ||
| ) |
Definition at line 508 of file blf.c.
References blf_draw__end(), blf_draw__start(), blf_font_draw_ascii(), and BLF_get().
Referenced by BLF_draw_default_ascii(), draw_image_info(), and draw_nodespace_color_info().
| void BLF_draw_buffer | ( | int | fontid, |
| const char * | str | ||
| ) |
Definition at line 735 of file blf.c.
References blf_font_buffer(), and BLF_get().
Referenced by BKE_stamp_buf(), and checker_board_text().
| void BLF_draw_default | ( | float | x, |
| float | y, | ||
| float | z, | ||
| const char * | str, | ||
| size_t | len | ||
| ) |
Definition at line 420 of file blf.c.
References BLF_draw(), BLF_position(), blf_search(), BLF_size(), global_font_default, global_font_dpi, and global_font_points.
Referenced by BL_print_gamedebug_line(), BL_print_gamedebug_line_padded(), draw_selected_name(), drawviewborder(), ED_region_do_draw(), GPC_RenderTools::RenderText2D(), UI_view2d_text_cache_draw(), and view3d_cached_text_draw_end().
| void BLF_draw_default_ascii | ( | float | x, |
| float | y, | ||
| float | z, | ||
| const char * | str, | ||
| size_t | len | ||
| ) |
Definition at line 439 of file blf.c.
References BLF_draw_ascii(), BLF_position(), blf_search(), BLF_size(), global_font_default, global_font_dpi, and global_font_points.
Referenced by draw_view_axis(), draw_viewport_fps(), draw_viewport_name(), scroll_printstr(), view3d_cached_text_draw_end(), and view3d_main_area_draw().
| void BLF_enable | ( | int | fontid, |
| int | option | ||
| ) |
Definition at line 293 of file blf.c.
References BLF_get(), and FontBLF::flags.
Referenced by BL_print_game_line(), py_blf_enable(), GPC_RenderTools::RenderText3D(), UI_DrawString(), UI_GetStringWidth(), ui_text_label_rightclip(), ui_text_leftclip(), ui_textedit_set_cursor_pos(), uiStyleFontDrawExt(), uiStyleFontDrawRotated(), and widget_draw_text().
| void BLF_enable_default | ( | int | option | ) |
Definition at line 311 of file blf.c.
References BLF_get(), FontBLF::flags, and global_font_default.
Referenced by UI_view2d_scrollers_draw(), and UI_view2d_text_cache_draw().
| void BLF_exit | ( | void | ) |
Definition at line 97 of file blf.c.
References blf_font_exit(), blf_font_free(), global_font_num, and i.
| float BLF_fixed_width | ( | int | fontid | ) |
Definition at line 546 of file blf.c.
References blf_font_fixed_width(), and BLF_get().
Referenced by draw_text_main(), text_update_character_width(), and textview_draw().
| float BLF_height | ( | int | fontid, |
| const char * | str | ||
| ) |
Definition at line 573 of file blf.c.
References blf_font_height(), and BLF_get().
Referenced by BLF_height_default(), file_font_pointsize(), loggerwindow_new(), and ui_draw_preview_item().
| float BLF_height_default | ( | const char * | str | ) |
Definition at line 631 of file blf.c.
References BLF_height(), blf_search(), BLF_size(), global_font_default, global_font_dpi, and global_font_points.
Referenced by UI_view2d_text_cache_draw().
| float BLF_height_max | ( | int | fontid | ) |
Definition at line 583 of file blf.c.
References BLF_get(), FontBLF::glyph_cache, and GlyphCacheBLF::max_glyph_height.
Referenced by BKE_stamp_buf(), and ui_tooltip_create().
| int BLF_init | ( | int | points, |
| int | dpi | ||
| ) |
Definition at line 85 of file blf.c.
References blf_font_init(), BLF_MAX_FONT, global_font_dpi, global_font_points, i, and NULL.
| void BLF_lang_encoding | ( | const char * | str | ) |
Definition at line 128 of file blf_lang.c.
| void BLF_lang_encoding_name | ( | const char * | str | ) |
| void BLF_lang_init | ( | void | ) |
Definition at line 123 of file blf_lang.c.
| void BLF_lang_set | ( | const char * | ) |
Definition at line 134 of file blf_lang.c.
| int BLF_load | ( | const char * | name | ) |
Definition at line 136 of file blf.c.
References blf_dir_search(), blf_font_new(), BLF_MAX_FONT, blf_search(), global_font_num, i, and MEM_freeN().
Referenced by KX_FontObject::KX_FontObject(), py_blf_load(), and uiStyleInit().
| int BLF_load_mem | ( | const char * | name, |
| unsigned char * | mem, | ||
| int | mem_size | ||
| ) |
Definition at line 223 of file blf.c.
References blf_font_new_from_mem(), BLF_MAX_FONT, blf_search(), global_font_num, and i.
Referenced by loggerwindow_new(), main(), and uiStyleInit().
| int BLF_load_mem_unique | ( | const char * | name, |
| unsigned char * | mem, | ||
| int | mem_size | ||
| ) |
Definition at line 259 of file blf.c.
References blf_font_new_from_mem(), BLF_MAX_FONT, global_font_num, and i.
Referenced by uiStyleInit().
| int BLF_load_unique | ( | const char * | name | ) |
Definition at line 177 of file blf.c.
References blf_dir_search(), blf_font_new(), BLF_MAX_FONT, global_font_num, i, and MEM_freeN().
| void BLF_matrix | ( | int | fontid, |
| double * | m | ||
| ) |
Definition at line 341 of file blf.c.
References BLF_get(), i, and FontBLF::m.
Referenced by BL_print_game_line(), and GPC_RenderTools::RenderText3D().
| void BLF_metrics_attach | ( | int | fontid, |
| unsigned char * | mem, | ||
| int | mem_size | ||
| ) |
Definition at line 214 of file blf.c.
References blf_font_attach_from_mem(), and BLF_get().
| void BLF_position | ( | int | fontid, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Definition at line 353 of file blf.c.
References FontBLF::aspect, BLF_ASPECT, BLF_get(), FontBLF::flags, and FontBLF::pos.
Referenced by BKE_stamp_buf(), BL_print_game_line(), BLF_draw_default(), BLF_draw_default_ascii(), checker_board_text(), console_draw_string(), draw_image_info(), draw_nodespace_color_info(), loggerwindow_do_draw(), py_blf_position(), GPC_RenderTools::RenderText3D(), text_font_draw(), text_font_draw_character(), UI_DrawString(), uiStyleFontDrawExt(), uiStyleFontDrawRotated(), and widget_draw_text().
| void BLF_rotation | ( | int | fontid, |
| float | angle | ||
| ) |
Definition at line 648 of file blf.c.
References FontBLF::angle, angle(), and BLF_get().
Referenced by py_blf_rotation(), and uiStyleFontDrawRotated().
| void BLF_rotation_default | ( | float | angle | ) |
Definition at line 457 of file blf.c.
References FontBLF::angle, angle(), BLF_get(), and global_font_default.
Referenced by UI_view2d_scrollers_draw().
| void BLF_shadow | ( | int | fontid, |
| int | level, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) |
Definition at line 683 of file blf.c.
References BLF_get(), g, FontBLF::shadow, and FontBLF::shadow_col.
Referenced by py_blf_shadow(), uiStyleFontDrawExt(), and uiStyleFontDrawRotated().
| void BLF_shadow_offset | ( | int | fontid, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 697 of file blf.c.
References BLF_get(), FontBLF::shadow_x, and FontBLF::shadow_y.
Referenced by py_blf_shadow_offset(), uiStyleFontDrawExt(), and uiStyleFontDrawRotated().
| void BLF_size | ( | int | fontid, |
| int | size, | ||
| int | dpi | ||
| ) |
Definition at line 402 of file blf.c.
References blf_font_size(), and BLF_get().
Referenced by BKE_stamp_buf(), BL_print_game_line(), BLF_draw_default(), BLF_draw_default_ascii(), BLF_height_default(), BLF_width_default(), checker_board_text(), console_font_begin(), draw_image_info(), draw_nodespace_color_info(), loggerwindow_new(), py_blf_size(), GPC_RenderTools::RenderText3D(), text_font_begin(), uiStyleFontSet(), uiStyleInit(), and wm_block_create_splash().
| float BLF_width | ( | int | fontid, |
| const char * | str | ||
| ) |
Definition at line 536 of file blf.c.
References blf_font_width(), and BLF_get().
Referenced by BLF_width_default(), draw_image_info(), draw_nodespace_color_info(), file_string_width(), text_font_draw(), text_font_width(), ui_draw_menu_item(), ui_draw_preview_item(), UI_GetStringWidth(), ui_text_bounds_block(), ui_text_label_rightclip(), ui_text_leftclip(), ui_textedit_set_cursor_pos(), ui_tooltip_create(), uiStyleFontDrawExt(), uiStyleFontDrawRotated(), uiTemplateReportsBanner(), widget_draw_text(), and wm_block_create_splash().
| void BLF_width_and_height | ( | int | fontid, |
| const char * | str, | ||
| float * | width, | ||
| float * | height | ||
| ) |
Definition at line 527 of file blf.c.
References blf_font_width_and_height(), and BLF_get().
Referenced by BKE_stamp_buf(), and py_blf_dimensions().
| float BLF_width_default | ( | const char * | str | ) |
Definition at line 556 of file blf.c.
References blf_search(), BLF_size(), BLF_width(), global_font_default, global_font_dpi, and global_font_points.
| float BLF_width_max | ( | int | fontid | ) |
Definition at line 595 of file blf.c.
References BLF_get(), FontBLF::glyph_cache, and GlyphCacheBLF::max_glyph_width.
Referenced by BKE_stamp_buf().
| int blf_mono_font |
Definition at line 75 of file blf.c.
Referenced by checker_board_text(), console_draw_string(), console_font_begin(), draw_image_info(), draw_nodespace_color_info(), textview_draw(), and uiStyleInit().
Definition at line 76 of file blf.c.
Referenced by BKE_stamp_buf(), and uiStyleInit().