|
Blender V4.3
|
#include "BLI_hash_md5.hh"#include "BLI_utildefines.h"#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]) |
| #define FONT_THUMB_VERSION "1.0.1" |
Definition at line 21 of file thumbs_font.cc.
Referenced by IMB_thumb_load_font_get_hash().
Definition at line 49 of file thumbs_font.cc.
References BLF_buffer(), BLF_buffer_col(), BLF_draw_buffer(), BLF_enable(), BLF_load(), BLF_position(), BLF_size(), BLF_unload_id(), BLF_width_and_height(), BLF_WORD_WRAP, ImBuf::byte_buffer, col, ImBufByteBuffer::data, ImBufFloatBuffer::data, float, ImBuf::float_buffer, IB_rect, IMB_allocImBuf(), IMB_rectfill(), int, and sample.
Referenced by ui_tooltip_from_vfont().
Special function for previewing fonts.
Definition at line 23 of file thumbs_font.cc.
References BLF_thumb_preview(), ImBuf::byte_buffer, ImBuf::channels, col, ImBufByteBuffer::data, IB_metadata, IB_rect, IMB_allocImBuf(), IMB_freeImBuf(), IMB_rectfill(), ImBuf::x, and ImBuf::y.
Referenced by thumb_create_ex().
| bool IMB_thumb_load_font_get_hash | ( | char * | r_hash | ) |
Definition at line 39 of file thumbs_font.cc.
References BLI_hash_md5_buffer(), BLI_hash_md5_to_hexdigest(), and FONT_THUMB_VERSION.
Referenced by thumbhash_from_path().