|
Blender V4.3
|
#include <mutex>#include "BLF_api.hh"#include "BLI_map.hh"#include "BLI_vector.hh"#include "GPU_texture.hh"#include "GPU_vertex_buffer.hh"Go to the source code of this file.
Classes | |
| struct | BatchBLF |
| struct | KerningCacheBLF |
| struct | GlyphCacheKey |
| struct | GlyphCacheBLF |
| struct | GlyphBLF |
| struct | FontBufInfoBLF |
| struct | FontMetrics |
| struct | FontBLF |
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
Macros | |
| #define | BLF_VARIATIONS_MAX 16 |
| #define | MAKE_DVAR_TAG(a, b, c, d) ((uint32_t(a) << 24u) | (uint32_t(b) << 16u) | (uint32_t(c) << 8u) | (uint32_t(d))) |
| #define | BLF_VARIATION_AXIS_WEIGHT MAKE_DVAR_TAG('w', 'g', 'h', 't') /* 'wght' weight axis. */ |
| #define | BLF_VARIATION_AXIS_SLANT MAKE_DVAR_TAG('s', 'l', 'n', 't') /* 'slnt' slant axis. */ |
| #define | BLF_VARIATION_AXIS_WIDTH MAKE_DVAR_TAG('w', 'd', 't', 'h') /* 'wdth' width axis. */ |
| #define | BLF_VARIATION_AXIS_SPACING MAKE_DVAR_TAG('s', 'p', 'a', 'c') /* 'spac' spacing axis. */ |
| #define | BLF_VARIATION_AXIS_OPTSIZE MAKE_DVAR_TAG('o', 'p', 's', 'z') /* 'opsz' optical size. */ |
| #define | BLF_BATCH_DRAW_LEN_MAX 2048 /* in glyph */ |
| #define | KERNING_CACHE_TABLE_SIZE 128 |
| #define | KERNING_ENTRY_UNSET INT_MAX |
Variables | |
| BatchBLF | g_batch |
Sub-Pixel Offset & Utilities | |
Free-type uses fixed point precision for sub-pixel offsets. Utility functions here avoid exposing the details in the BLF API. | |
| #define | FT_PIX_FLOOR(x) ((x) & ~63) |
| #define | FT_PIX_ROUND(x) FT_PIX_FLOOR((x) + 32) |
| #define | FT_PIX_CEIL(x) ((x) + 63) |
| typedef int32_t | ft_pix |
| int | ft_pix_to_int (ft_pix v) |
| int | ft_pix_to_int_floor (ft_pix v) |
| int | ft_pix_to_int_ceil (ft_pix v) |
| ft_pix | ft_pix_from_int (int v) |
| ft_pix | ft_pix_from_float (float v) |
| #define BLF_BATCH_DRAW_LEN_MAX 2048 /* in glyph */ |
Definition at line 89 of file blf_internal_types.hh.
Referenced by blf_batch_draw_init(), and blf_texture_draw().
| #define BLF_VARIATION_AXIS_OPTSIZE MAKE_DVAR_TAG('o', 'p', 's', 'z') /* 'opsz' optical size. */ |
Definition at line 41 of file blf_internal_types.hh.
Referenced by blf_glyph_set_variation_optical_size().
| #define BLF_VARIATION_AXIS_SLANT MAKE_DVAR_TAG('s', 'l', 'n', 't') /* 'slnt' slant axis. */ |
Definition at line 38 of file blf_internal_types.hh.
Referenced by blf_glyph_set_variation_slant().
| #define BLF_VARIATION_AXIS_SPACING MAKE_DVAR_TAG('s', 'p', 'a', 'c') /* 'spac' spacing axis. */ |
Definition at line 40 of file blf_internal_types.hh.
Referenced by blf_glyph_set_variation_spacing().
| #define BLF_VARIATION_AXIS_WEIGHT MAKE_DVAR_TAG('w', 'g', 'h', 't') /* 'wght' weight axis. */ |
Definition at line 37 of file blf_internal_types.hh.
Referenced by blf_glyph_set_variation_weight(), and BLF_has_variable_weight().
| #define BLF_VARIATION_AXIS_WIDTH MAKE_DVAR_TAG('w', 'd', 't', 'h') /* 'wdth' width axis. */ |
Definition at line 39 of file blf_internal_types.hh.
Referenced by blf_glyph_set_variation_width().
| #define BLF_VARIATIONS_MAX 16 |
Maximum variation axes per font.
Definition at line 32 of file blf_internal_types.hh.
Referenced by blf_glyph_render(), blf_glyph_set_variation_float(), and blf_glyph_set_variation_normalized().
| #define FT_PIX_CEIL | ( | x | ) | ((x) + 63) |
Definition at line 60 of file blf_internal_types.hh.
Referenced by ft_pix_to_int_ceil().
| #define FT_PIX_FLOOR | ( | x | ) | ((x) & ~63) |
Definition at line 58 of file blf_internal_types.hh.
| #define FT_PIX_ROUND | ( | x | ) | FT_PIX_FLOOR((x) + 32) |
Definition at line 59 of file blf_internal_types.hh.
Referenced by blf_font_width_to_strlen_glyph_process(), and blf_glyph_from_utf8_and_step().
| #define KERNING_CACHE_TABLE_SIZE 128 |
Number of characters in #KerningCacheBLF.table.
Definition at line 92 of file blf_internal_types.hh.
Referenced by blf_kerning(), and blf_setup_face().
| #define KERNING_ENTRY_UNSET INT_MAX |
A value in the kerning cache that indicates it is not yet set.
Definition at line 95 of file blf_internal_types.hh.
Referenced by blf_kerning(), and blf_setup_face().
| #define MAKE_DVAR_TAG | ( | a, | |
| b, | |||
| c, | |||
| d ) ((uint32_t(a) << 24u) | (uint32_t(b) << 16u) | (uint32_t(c) << 8u) | (uint32_t(d))) |
Definition at line 34 of file blf_internal_types.hh.
This is an internal type that represents sub-pixel positioning, users of this type are to use ft_pix_* functions to keep scaling/rounding in one place.
Definition at line 54 of file blf_internal_types.hh.
Definition at line 82 of file blf_internal_types.hh.
References v.
Definition at line 77 of file blf_internal_types.hh.
References v.
Referenced by blf_font_boundbox_ex(), blf_font_draw_buffer_ex(), blf_font_draw_mono(), blf_font_height_max_ft_pix(), blf_font_width_max_ft_pix(), blf_font_wrap_apply(), and blf_glyph_draw_buffer().
Definition at line 62 of file blf_internal_types.hh.
Referenced by blf_font_ascender(), blf_font_boundbox_ex(), blf_font_descender(), blf_font_draw_buffer_ex(), blf_font_draw_ex(), blf_font_height_max(), blf_font_width_max(), blf_font_width_to_rstrlen(), blf_font_width_to_strlen(), blf_font_width_to_strlen_glyph_process(), blf_font_wrap_apply(), blf_glyph_calc_rect_test(), blf_glyph_draw_buffer(), and BLF_thumb_preview().
Definition at line 72 of file blf_internal_types.hh.
References FT_PIX_CEIL, int, and v.
Referenced by blf_font_boundbox_ex(), and blf_font_boundbox_foreach_glyph().
Definition at line 67 of file blf_internal_types.hh.
Referenced by blf_font_boundbox_ex(), blf_font_boundbox_foreach_glyph(), blf_font_draw_ex(), and blf_font_draw_mono().
|
extern |
Definition at line 59 of file blf_font.cc.
Referenced by blf_batch_cache_texture_load(), blf_batch_draw(), BLF_batch_draw_begin(), blf_batch_draw_begin(), BLF_batch_draw_end(), blf_batch_draw_end(), blf_batch_draw_exit(), BLF_batch_draw_flush(), blf_batch_draw_init(), blf_font_init(), blf_glyph_draw(), and blf_texture_draw().