Blender V5.3
blf_thumbs.cc File Reference
#include <algorithm>
#include <cstdlib>
#include <ft2build.h>
#include "BLI_math_bits.hh"
#include "BLI_utildefines.hh"
#include "blf_internal_types.hh"
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Classes

struct  blender::UnicodeSample

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BLF_SAMPLE_LEN   5

Functions

static const char32_t * blender::blf_get_sample_text (const FT_Face face)
bool blender::BLF_thumb_preview (const char *filepath, unsigned char *buf, int w, int h, int channels) ATTR_NONNULL()

Variables

static const UnicodeSample blender::unicode_samples []

Detailed Description

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.cc.

Macro Definition Documentation

◆ BLF_SAMPLE_LEN

#define BLF_SAMPLE_LEN   5

Definition at line 33 of file blf_thumbs.cc.

Referenced by blender::BLF_thumb_preview().