|
Blender V5.3
|
#include <blf_internal_types.hh>
Public Attributes | |
| char * | filepath |
| const void * | mem |
| size_t | mem_size |
| char * | mem_name |
| uint | unicode_ranges [4] |
| std::atomic< uint32_t > | reference_count |
| float | aspect [3] |
| int | pos [3] |
| float | angle |
| FontShadowType | shadow |
| int | shadow_x |
| int | shadow_y |
| unsigned char | shadow_color [4] |
| unsigned char | color [4] |
| rcti | clip_rec |
| int | wrap_width |
| BLFWrapMode | wrap_mode |
| float | size |
| FT_MM_Var * | variations |
| int | char_weight |
| float | char_slant |
| float | char_width |
| float | char_spacing |
| int | tex_size_max |
| FontFlags | flags |
| Vector< std::unique_ptr< GlyphCacheBLF > > | cache |
| KerningCacheBLF * | kerning_cache |
| FT_Library | ft_lib |
| FT_Face | face |
| FT_Size | ft_size |
| FT_Long | face_flags |
| FontMetrics | metrics |
| FontBufInfoBLF | buf_info |
| Mutex | glyph_cache_mutex |
Definition at line 334 of file blf_internal_types.hh.
| float blender::FontBLF::angle |
Angle in radians.
Definition at line 361 of file blf_internal_types.hh.
Referenced by blender::blf_draw_gpu__start(), blender::BLF_draw_svg_icon(), blender::blf_font_fill(), blender::BLF_rotation(), and blender::BLF_state_print().
| float blender::FontBLF::aspect[3] |
Aspect ratio or scale.
Definition at line 355 of file blf_internal_types.hh.
Referenced by blender::BLF_aspect(), blender::blf_draw_gpu__start(), blender::BLF_draw_svg_icon(), blender::blf_font_fill(), blender::blf_font_height(), blender::blf_font_width(), blender::blf_font_width_and_height(), blender::blf_glyph_draw(), blender::BLF_position(), blender::BLF_state_print(), blender::BLF_width_to_rstrlen(), and blender::BLF_width_to_strlen().
| FontBufInfoBLF blender::FontBLF::buf_info |
Data for buffer usage (drawing into a texture buffer)
Definition at line 431 of file blf_internal_types.hh.
Referenced by blender::BLF_buffer(), blender::BLF_buffer_col(), blender::BLF_buffer_state_pop(), blender::BLF_buffer_state_push(), blender::BLF_draw_buffer(), blender::blf_draw_buffer__start(), blender::blf_font_draw_buffer_ex(), and blender::blf_font_fill().
| Vector<std::unique_ptr<GlyphCacheBLF> > blender::FontBLF::cache |
List of glyph caches (GlyphCacheBLF) for this font for size, DPI, bold, italic. Use blf_glyph_cache_acquire(font) and blf_glyph_cache_release(font) to access cache!
Definition at line 410 of file blf_internal_types.hh.
Referenced by blender::blf_glyph_cache_clear(), blender::blf_glyph_cache_find(), and blender::blf_glyph_cache_new().
| float blender::FontBLF::char_slant |
Slant in clockwise degrees. 0.0 = upright.
Definition at line 394 of file blf_internal_types.hh.
Referenced by blender::blf_font_fill(), blender::blf_glyph_cache_find(), blender::blf_glyph_cache_new(), blender::blf_glyph_render(), and blender::blf_setup_face().
| float blender::FontBLF::char_spacing |
Factor of normal character spacing. 0.0 = normal.
Definition at line 398 of file blf_internal_types.hh.
Referenced by blender::blf_font_fill(), blender::blf_glyph_cache_find(), blender::blf_glyph_cache_new(), blender::blf_glyph_render(), and blender::blf_setup_face().
| int blender::FontBLF::char_weight |
Wight in range: 100 - 900, 400 = normal.
Definition at line 392 of file blf_internal_types.hh.
Referenced by blender::BLF_character_weight(), blender::blf_font_fill(), blender::blf_glyph_cache_find(), blender::blf_glyph_cache_new(), blender::blf_glyph_render(), and blender::blf_setup_face().
| float blender::FontBLF::char_width |
Factor of normal character width. 1.0 = normal.
Definition at line 396 of file blf_internal_types.hh.
Referenced by blender::blf_font_fill(), blender::blf_glyph_cache_find(), blender::blf_glyph_cache_new(), blender::blf_glyph_render(), and blender::blf_setup_face().
| rcti blender::FontBLF::clip_rec |
Clipping rectangle.
Definition at line 377 of file blf_internal_types.hh.
Referenced by blender::BLF_clipping(), blender::blf_font_fill(), and blender::blf_glyph_draw().
| unsigned char blender::FontBLF::color[4] |
Main text color.
Definition at line 374 of file blf_internal_types.hh.
Referenced by blender::BLF_color3ub(), blender::BLF_color3ubv_alpha(), blender::BLF_color4fv(), blender::BLF_color4ub(), blender::BLF_color4ubv(), blender::blf_draw_svg_icon(), blender::blf_font_fill(), and blender::blf_glyph_draw().
| FT_Face blender::FontBLF::face |
Freetype2 face.
Definition at line 419 of file blf_internal_types.hh.
Referenced by blender::blf_cache_face_requester(), blender::blf_display_name(), blender::blf_ensure_face(), blender::blf_face_finalizer(), blender::blf_font_attach_from_mem(), blender::blf_font_bounds_max(), blender::blf_font_free(), blender::blf_font_new_impl(), blender::BLF_get_vfont_metrics(), blender::blf_glyph_cache_new(), blender::blf_glyph_load(), blender::blf_glyph_render(), blender::blf_glyphslot_ensure_outline(), blender::blf_kerning(), and blender::blf_setup_face().
| FT_Long blender::FontBLF::face_flags |
Copy of the font->face->face_flags, in case we don't have a face loaded.
Definition at line 425 of file blf_internal_types.hh.
Referenced by blender::blf_setup_face().
| char* blender::FontBLF::filepath |
The full path to font file or NULL when from memory.
Definition at line 336 of file blf_internal_types.hh.
Referenced by blender::blf_cache_face_requester(), blender::blf_ensure_face(), blender::blf_font_free(), blender::blf_font_new_impl(), blender::blf_search_by_filepath(), blender::BLF_state_print(), and blender::BLF_unload().
| FontFlags blender::FontBLF::flags |
Font options.
Definition at line 404 of file blf_internal_types.hh.
Referenced by blender::blf_batch_draw_begin(), blender::BLF_boundbox(), blender::BLF_boundbox_foreach_glyph(), blender::BLF_disable(), blender::BLF_draw(), blender::BLF_draw_buffer(), blender::blf_draw_gpu__end(), blender::blf_draw_gpu__start(), blender::BLF_draw_svg_icon(), blender::blf_draw_svg_icon(), blender::BLF_enable(), blender::blf_ensure_face(), blender::blf_font_boundbox_ex(), blender::blf_font_fill(), blender::blf_font_height(), blender::blf_font_new_impl(), blender::blf_font_width(), blender::blf_font_width_and_height(), blender::blf_font_width_to_strlen_glyph_process(), blender::blf_glyph_cache_find(), blender::blf_glyph_cache_new(), blender::blf_glyph_draw(), blender::blf_glyph_ensure_subpixel(), blender::blf_glyph_from_utf8_and_step(), blender::blf_glyph_index_from_charcode(), blender::blf_glyph_load(), blender::blf_glyph_render(), blender::blf_glyph_render_bitmap(), blender::BLF_is_builtin(), blender::BLF_position(), blender::BLF_reset_fonts(), blender::blf_setup_face(), blender::BLF_state_print(), blender::BLF_width_to_rstrlen(), and blender::BLF_width_to_strlen().
| FT_Library blender::FontBLF::ft_lib |
Freetype2 lib handle.
Definition at line 416 of file blf_internal_types.hh.
Referenced by blender::blf_font_free(), blender::blf_font_new_impl(), and blender::blf_glyph_render_bitmap().
| FT_Size blender::FontBLF::ft_size |
Point to face->size or to cache's size.
Definition at line 422 of file blf_internal_types.hh.
Referenced by blender::blf_ensure_size(), blender::blf_font_ascender(), blender::blf_font_descender(), blender::blf_font_height_max_ft_pix(), blender::blf_font_size(), blender::blf_font_width_max_ft_pix(), blender::blf_glyph_cache_new(), blender::blf_glyph_transform_slant(), blender::blf_glyph_transform_spacing(), blender::blf_glyph_transform_weight(), blender::blf_size_finalizer(), and blender::blf_unscaled_F26Dot6_to_pixels().
| Mutex blender::FontBLF::glyph_cache_mutex |
Mutex lock for glyph cache.
Definition at line 434 of file blf_internal_types.hh.
Referenced by blender::blf_glyph_cache_acquire(), blender::blf_glyph_cache_clear(), and blender::blf_glyph_cache_release().
| KerningCacheBLF* blender::FontBLF::kerning_cache |
Cache of unscaled kerning values. Will be NULL if font does not have kerning.
Definition at line 413 of file blf_internal_types.hh.
Referenced by blender::blf_font_fill(), blender::blf_font_free(), blender::blf_kerning(), and blender::blf_setup_face().
| const void* blender::FontBLF::mem |
Pointer to in-memory font, or NULL when from a file.
Definition at line 339 of file blf_internal_types.hh.
Referenced by blender::blf_cache_face_requester(), and blender::blf_font_new_impl().
| char* blender::FontBLF::mem_name |
Handle for in-memory fonts to avoid loading them multiple times.
Definition at line 342 of file blf_internal_types.hh.
Referenced by blender::blf_font_free(), blender::blf_font_new_impl(), blender::blf_search_by_mem_name(), and blender::BLF_state_print().
| size_t blender::FontBLF::mem_size |
Definition at line 340 of file blf_internal_types.hh.
Referenced by blender::blf_cache_face_requester(), and blender::blf_font_new_impl().
| FontMetrics blender::FontBLF::metrics |
Details about the font's design and style and sizes (in un-sized font units).
Definition at line 428 of file blf_internal_types.hh.
Referenced by blender::BLF_default_weight(), blender::blf_glyph_render(), and blender::blf_setup_face().
| int blender::FontBLF::pos[3] |
Initial position for draw the text.
Definition at line 358 of file blf_internal_types.hh.
Referenced by blender::blf_batch_draw_begin(), blender::blf_draw_gpu__start(), blender::BLF_draw_svg_icon(), blender::blf_font_draw_buffer_ex(), blender::blf_font_fill(), blender::blf_glyph_draw(), blender::BLF_position(), and blender::BLF_state_print().
| std::atomic<uint32_t> blender::FontBLF::reference_count |
Number of references to this font object. When it reaches zero, font is unloaded.
Definition at line 352 of file blf_internal_types.hh.
Referenced by blender::BLF_addref_id(), blender::BLF_load(), blender::BLF_load_mem_unique(), blender::BLF_load_unique(), blender::BLF_unload(), and blender::BLF_unload_id().
| FontShadowType blender::FontBLF::shadow |
Shadow type.
Definition at line 364 of file blf_internal_types.hh.
Referenced by blender::blf_draw_svg_icon(), blender::blf_glyph_draw(), and blender::BLF_shadow().
| unsigned char blender::FontBLF::shadow_color[4] |
Shadow color.
Definition at line 371 of file blf_internal_types.hh.
Referenced by blender::blf_draw_svg_icon(), blender::blf_glyph_draw(), and blender::BLF_shadow().
| int blender::FontBLF::shadow_x |
And shadow offset.
Definition at line 367 of file blf_internal_types.hh.
Referenced by blender::blf_draw_svg_icon(), blender::blf_glyph_calc_rect_shadow(), and blender::BLF_shadow_offset().
| int blender::FontBLF::shadow_y |
Definition at line 368 of file blf_internal_types.hh.
Referenced by blender::blf_draw_svg_icon(), blender::blf_glyph_calc_rect_shadow(), and blender::BLF_shadow_offset().
| float blender::FontBLF::size |
Font size.
Definition at line 384 of file blf_internal_types.hh.
Referenced by blender::blf_ensure_size(), blender::blf_font_bounds_max(), blender::blf_font_fill(), blender::blf_font_fixed_width(), blender::blf_font_size(), blender::blf_glyph_cache_find(), blender::blf_glyph_cache_new(), blender::blf_glyph_ensure_subpixel(), blender::blf_glyph_render(), and blender::BLF_state_print().
| int blender::FontBLF::tex_size_max |
Max texture size.
Definition at line 401 of file blf_internal_types.hh.
Referenced by blender::blf_font_fill(), and blender::blf_glyph_draw().
| uint blender::FontBLF::unicode_ranges[4] |
Copied from the SFNT OS/2 table. Bit flags for unicode blocks and ranges considered "functional". Cached here because face might not always exist. See: https://docs.microsoft.com/en-us/typography/opentype/spec/os2#ur
Definition at line 349 of file blf_internal_types.hh.
Referenced by blender::blf_font_has_coverage_bit(), and blender::blf_font_new_impl().
| FT_MM_Var* blender::FontBLF::variations |
Axes data for Adobe MM, TrueType GX, or OpenType variation fonts.
Definition at line 387 of file blf_internal_types.hh.
Referenced by blender::blf_font_free(), blender::blf_glyph_render(), blender::blf_glyph_set_variation_float(), blender::blf_glyph_set_variation_normalized(), blender::BLF_has_variable_weight(), and blender::blf_setup_face().
| BLFWrapMode blender::FontBLF::wrap_mode |
Definition at line 381 of file blf_internal_types.hh.
Referenced by blender::blf_font_boundbox__wrap(), blender::blf_font_draw__wrap(), blender::blf_font_draw_buffer__wrap(), and blender::BLF_wordwrap().
| int blender::FontBLF::wrap_width |
The width to wrap the text, see BLF_WORD_WRAP.
Definition at line 380 of file blf_internal_types.hh.
Referenced by blender::blf_font_boundbox__wrap(), blender::blf_font_draw__wrap(), blender::blf_font_draw_buffer__wrap(), and blender::BLF_wordwrap().