|
Blender V5.0
|
#include "BLI_hash_md5.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_thumbs.hh"#include "../../blenfont/BLF_api.hh"Go to the source code of this file.
Macros | |
| #define | FONT_THUMB_VERSION "1.0.1" |
Functions | |
| ImBuf * | IMB_thumb_load_font (const char *filepath, uint x, uint y) |
| bool | IMB_thumb_load_font_get_hash (char *r_hash) |
| ImBuf * | IMB_font_preview (const char *filepath, uint width, const float color[4], const char *sample_text) |
| #define FONT_THUMB_VERSION "1.0.1" |
Definition at line 20 of file thumbs_font.cc.
Referenced by IMB_thumb_load_font_get_hash().
| ImBuf * IMB_font_preview | ( | const char * | filepath, |
| uint | width, | ||
| const float | color[4], | ||
| const char * | sample_text ) |
Definition at line 48 of file thumbs_font.cc.
References BLF_buffer(), BLF_buffer_col(), BLF_draw_buffer(), BLF_load(), BLF_position(), BLF_size(), BLF_unload_id(), BLF_width_and_height(), ImBuf::byte_buffer, col, ImBufByteBuffer::data, ImBufFloatBuffer::data, float, ImBuf::float_buffer, IB_byte_data, IMB_allocImBuf(), IMB_rectfill(), and sample.
Referenced by file_draw_tooltip_custom_func(), and ui_tooltip_from_vfont().
Special function for previewing fonts.
Definition at line 22 of file thumbs_font.cc.
References BLF_thumb_preview(), ImBuf::byte_buffer, ImBuf::channels, col, ImBufByteBuffer::data, IB_byte_data, IB_metadata, IMB_allocImBuf(), IMB_freeImBuf(), IMB_rectfill(), ImBuf::x, x, ImBuf::y, and y.
Referenced by thumb_create_ex().
| bool IMB_thumb_load_font_get_hash | ( | char * | r_hash | ) |
Definition at line 38 of file thumbs_font.cc.
References BLI_hash_md5_buffer(), BLI_hash_md5_to_hexdigest(), and FONT_THUMB_VERSION.
Referenced by thumbhash_from_path().