42#include FT_MULTIPLE_MASTERS_H
45#define BLF_VARIATIONS_MAX 16
47#define MAKE_DVAR_TAG(a, b, c, d) \
48 ((uint32_t(a) << 24u) | (uint32_t(b) << 16u) | (uint32_t(c) << 8u) | (uint32_t(d)))
50#define BLF_VARIATION_AXIS_WEIGHT MAKE_DVAR_TAG('w', 'g', 'h', 't')
51#define BLF_VARIATION_AXIS_SLANT MAKE_DVAR_TAG('s', 'l', 'n', 't')
52#define BLF_VARIATION_AXIS_WIDTH MAKE_DVAR_TAG('w', 'd', 't', 'h')
53#define BLF_VARIATION_AXIS_SPACING MAKE_DVAR_TAG('s', 'p', 'a', 'c')
54#define BLF_VARIATION_AXIS_OPTSIZE MAKE_DVAR_TAG('o', 'p', 's', 'z')
71#define FT_PIX_FLOOR(x) ((x) & ~63)
72#define FT_PIX_ROUND(x) FT_PIX_FLOOR((x) + 32)
73#define FT_PIX_CEIL(x) ((x) + 63)
97 return lroundf(
v * 64.0f);
102#define BLF_BATCH_DRAW_LEN_MAX 2048
105#define KERNING_CACHE_TABLE_SIZE 128
108#define KERNING_ENTRY_UNSET INT_MAX
blender::ocio::Display ColorManagedDisplay
ft_pix ft_pix_from_float(float v)
ft_pix ft_pix_from_int(int v)
#define KERNING_CACHE_TABLE_SIZE
int ft_pix_to_int_floor(ft_pix v)
int ft_pix_to_int_ceil(ft_pix v)
int ft_pix_to_int(ft_pix v)
ATTR_WARN_UNUSED_RESULT const BMVert * v
unsigned long long int uint64_t
uint64_t get_default_hash(const T &v, const Args &...args)
unsigned int glyph_flags_loc
blender::gpu::Batch * batch
GlyphCacheBLF * glyph_cache
GPUVertBufRaw offset_step
unsigned int glyph_size_loc
GPUVertBufRaw glyph_flags_step
GPUVertBufRaw glyph_size_step
blender::gpu::VertBuf * verts
KerningCacheBLF * kerning_cache
blender::Vector< std::unique_ptr< GlyphCacheBLF > > cache
std::atomic< uint32_t > reference_count
blender::Mutex glyph_cache_mutex
unsigned char shadow_color[4]
const ColorManagedDisplay * display
unsigned char col_char[4]
short underline_thickness
short superscript_yoffset
short superscript_xoffset
short strikeout_thickness
GlyphCacheBLF * glyph_cache
blender::Map< GlyphCacheKey, std::unique_ptr< GlyphBLF > > glyphs
friend bool operator==(const GlyphCacheKey &a, const GlyphCacheKey &b)
int ascii_table[KERNING_CACHE_TABLE_SIZE][KERNING_CACHE_TABLE_SIZE]