Blender  V3.3
Macros | Functions | Variables
thumbs_font.c File Reference
#include "BLI_fileops.h"
#include "BLI_hash_md5.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_thumbs.h"
#include "../../blenfont/BLF_api.h"
#include "../../blentranslation/BLT_translation.h"

Go to the source code of this file.

Macros

#define THUMB_TXT_ITEMS    N_("AaBbCc"), N_("The quick"), N_("brown fox"), N_("jumps over"), N_("the lazy dog"),
 

Functions

void IMB_thumb_clear_translations (void)
 
void IMB_thumb_ensure_translations (void)
 
struct ImBufIMB_thumb_load_font (const char *filepath, unsigned int x, unsigned int y)
 
bool IMB_thumb_load_font_get_hash (char *r_hash)
 

Variables

static const char * thumb_str [] = {THUMB_TXT_ITEMS}
 
static const char * i18n_thumb_str [] = {THUMB_TXT_ITEMS}
 

Macro Definition Documentation

◆ THUMB_TXT_ITEMS

#define THUMB_TXT_ITEMS    N_("AaBbCc"), N_("The quick"), N_("brown fox"), N_("jumps over"), N_("the lazy dog"),

Definition at line 21 of file thumbs_font.c.

Function Documentation

◆ IMB_thumb_clear_translations()

void IMB_thumb_clear_translations ( void  )

Definition at line 30 of file thumbs_font.c.

References ARRAY_SIZE, i18n_thumb_str, NULL, and thumb_str.

Referenced by BLT_lang_set(), and WM_init().

◆ IMB_thumb_ensure_translations()

void IMB_thumb_ensure_translations ( void  )

◆ IMB_thumb_load_font()

struct ImBuf* IMB_thumb_load_font ( const char *  filepath,
unsigned int  x,
unsigned int  y 
)

Special function for previewing fonts.

Definition at line 44 of file thumbs_font.c.

References ARRAY_SIZE, BLF_thumb_preview(), ImBuf::channels, i18n_thumb_str, IB_metadata, IB_rect, IMB_allocImBuf(), IMB_rectfill(), ImBuf::rect, thumb_str, x, ImBuf::x, y, and ImBuf::y.

Referenced by thumb_create_ex().

◆ IMB_thumb_load_font_get_hash()

bool IMB_thumb_load_font_get_hash ( char *  r_hash)

Variable Documentation

◆ i18n_thumb_str

const char* i18n_thumb_str[] = {THUMB_TXT_ITEMS}
static

◆ thumb_str

const char* thumb_str[] = {THUMB_TXT_ITEMS}
static