|
Blender V5.0
|
Go to the source code of this file.
Macros | |
| #define | ASSERT_DEFAULT_SET BLI_assert(global_font_default != -1) |
Functions | |
| void | BLF_default_size (const float size) |
| void | BLF_default_set (const int fontid) |
| int | BLF_default () |
| int | BLF_set_default () |
| void | BLF_draw_default (const float x, const float y, const float z, const char *str, const size_t str_len) |
Variables | |
| static int | global_font_default = -1 |
| static float | global_font_size = 11.0f |
Default API, that uses Blender's user preferences for the default size.
Definition in file blf_default.cc.
| #define ASSERT_DEFAULT_SET BLI_assert(global_font_default != -1) |
Definition at line 18 of file blf_default.cc.
Referenced by BLF_default(), BLF_draw_default(), and BLF_set_default().
| int BLF_default | ( | ) |
Get default font ID so we can pass it to other functions.
Definition at line 37 of file blf_default.cc.
References ASSERT_DEFAULT_SET, and global_font_default.
Referenced by blender::ed::vse::add_vertical_line(), BLF_reset_fonts(), BLF_str_offset_to_glyph_bounds(), blender::ed::vse::draw_handle_transform_text(), draw_selected_name(), blender::ed::vse::draw_vectorscope_graticule(), draw_view_axis(), blender::ed::transform::drawAutoKeyWarning(), drawviewborder(), drw_text_cache_draw_ex(), ED_info_draw_stats(), ED_region_image_overlay_info_text_draw(), ED_scene_draw_fps(), blender::ed::spreadsheet::ColumnValues::fit_column_values_width_px(), blender::ed::spreadsheet::ColumnValues::fit_column_width_px(), blender::ed::spreadsheet::get_index_column_width(), gizmo_axis_draw(), icon_draw_rect_input_text(), blender::ed::vse::label_rect_get(), blender::ed::vse::sequencer_preview_draw_overlays(), text_info_row(), ui_def_but_rna__menu(), ui_draw_but_WAVEFORM(), UI_view2d_text_cache_draw(), vectorscope_draw_target(), vicon_rgb_text_draw(), view3d_draw_region_info(), and WM_key_event_string().
| void BLF_default_set | ( | const int | fontid | ) |
Definition at line 30 of file blf_default.cc.
References BLF_is_loaded_id(), and global_font_default.
Referenced by BKE_blender_userdef_data_free(), BLF_str_offset_to_glyph_bounds(), BLF_unload_all(), and uiStyleInit().
| void BLF_default_size | ( | const float | size | ) |
Definition at line 25 of file blf_default.cc.
References global_font_size, and size().
Referenced by BLF_str_offset_to_glyph_bounds(), drw_text_cache_draw_ex(), uiStyleInit(), and view3d_draw_region_info().
Draw the string using the default font, size and DPI.
Definition at line 52 of file blf_default.cc.
References ASSERT_DEFAULT_SET, BLF_draw(), BLF_position(), BLF_size(), global_font_default, global_font_size, str, UI_SCALE_FAC, x, y, and z().
Referenced by BLF_str_offset_to_glyph_bounds(), draw_grid_unit_name(), draw_horizontal_scale_indicators(), draw_selected_name(), draw_vertical_scale_indicators(), draw_view_axis(), draw_viewport_name(), blender::ed::transform::drawAutoKeyWarning(), drawviewborder(), DRW_draw_region_engine_info(), drw_text_cache_draw_ex(), ED_scene_draw_fps(), stats_row(), ui_draw_but_WAVEFORM(), UI_view2d_text_cache_draw(), and vectorscope_draw_target().
| int BLF_set_default | ( | ) |
Set size and DPI, and return default font ID.
Definition at line 43 of file blf_default.cc.
References ASSERT_DEFAULT_SET, BLF_size(), global_font_default, global_font_size, and UI_SCALE_FAC.
Referenced by BLF_str_offset_to_glyph_bounds(), blender::ed::vse::draw_handle_transform_text(), draw_horizontal_scale_indicators(), draw_vertical_scale_indicators(), blender::ed::transform::drawAutoKeyWarning(), drw_text_cache_draw_ex(), ED_region_image_overlay_info_text_draw(), region_draw_status_text(), UI_view2d_text_cache_draw(), and view3d_draw_region_info().
|
static |
Definition at line 21 of file blf_default.cc.
Referenced by BLF_default(), BLF_default_set(), BLF_draw_default(), and BLF_set_default().
|
static |
Definition at line 23 of file blf_default.cc.
Referenced by BLF_default_size(), BLF_draw_default(), and BLF_set_default().