|
Blender
V3.3
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ft2build.h>#include "BLI_listbase.h"#include "BLI_rect.h"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "blf_internal.h"#include "blf_internal_types.h"#include "BLF_api.h"#include "BLT_translation.h"#include "BLI_strict_flags.h"Go to the source code of this file.
Functions | |
| void | BLF_thumb_preview (const char *filepath, const char **draw_str, const char **i18n_draw_str, const unsigned char draw_str_lines, const float font_color[4], const int font_size, unsigned char *buf, int w, int h, int channels) |
Utility function to generate font preview images.
Isolate since this needs to be called by ImBuf code (bad level call).
Definition in file blf_thumbs.c.
| void BLF_thumb_preview | ( | const char * | filepath, |
| const char ** | draw_str, | ||
| const char ** | i18n_draw_str, | ||
| unsigned char | draw_str_lines, | ||
| const float | font_color[4], | ||
| int | font_size, | ||
| unsigned char * | buf, | ||
| int | w, | ||
| int | h, | ||
| int | channels | ||
| ) |
This function is used for generating thumbnail previews.
Definition at line 32 of file blf_thumbs.c.
References blf_draw_buffer__end(), blf_draw_buffer__start(), blf_font_ascender(), blf_font_count_missing_chars(), blf_font_draw_buffer(), blf_font_free(), blf_font_new(), blf_font_size(), FontBLF::buf_info, FontBufInfoBLF::cbuf, FontBufInfoBLF::ch, channels(), CLAMP_MIN, FontBufInfoBLF::col_init, FontBufInfoBLF::dims, NULL, FontBLF::pos, and w().
Referenced by IMB_thumb_load_font().