|
Blender
V2.93
|
#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 *filename, 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 * | filename, |
| 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 | ||
| ) |
This function is used for generating thumbnail previews.
Definition at line 51 of file blf_thumbs.c.
References GlyphCacheBLF::ascender, blf_draw_buffer__end(), blf_draw_buffer__start(), blf_font_count_missing_chars(), blf_font_draw_buffer(), blf_font_free(), blf_font_new(), blf_font_size(), blf_glyph_cache_find(), FontBLF::buf_info, FontBufInfoBLF::cbuf, FontBufInfoBLF::ch, FontBufInfoBLF::col_init, FontBufInfoBLF::dims, FontBLF::dpi, float(), MAX2, NULL, FontBLF::pos, FontBLF::size, and w().
Referenced by IMB_thumb_load_font().