43#include FT_MULTIPLE_MASTERS_H
46#define BLF_VARIATIONS_MAX 16
48#define MAKE_DVAR_TAG(a, b, c, d) \
49 ((uint32_t(a) << 24u) | (uint32_t(b) << 16u) | (uint32_t(c) << 8u) | (uint32_t(d)))
51#define BLF_VARIATION_AXIS_WEIGHT MAKE_DVAR_TAG('w', 'g', 'h', 't')
52#define BLF_VARIATION_AXIS_SLANT MAKE_DVAR_TAG('s', 'l', 'n', 't')
53#define BLF_VARIATION_AXIS_WIDTH MAKE_DVAR_TAG('w', 'd', 't', 'h')
54#define BLF_VARIATION_AXIS_SPACING MAKE_DVAR_TAG('s', 'p', 'a', 'c')
55#define BLF_VARIATION_AXIS_OPTSIZE MAKE_DVAR_TAG('o', 'p', 's', 'z')
72#define FT_PIX_FLOOR(x) ((x) & ~63)
73#define FT_PIX_ROUND(x) FT_PIX_FLOOR((x) + 32)
74#define FT_PIX_CEIL(x) ((x) + 63)
98 return lroundf(
v * 64.0f);
103#define BLF_BATCH_DRAW_LEN_MAX 128
106#define KERNING_CACHE_TABLE_SIZE 128
109#define KERNING_ENTRY_UNSET INT_MAX
blender::ocio::ColorSpace ColorSpace
ft_pix ft_pix_from_float(float v)
ft_pix ft_pix_from_int(int v)
#define BLF_BATCH_DRAW_LEN_MAX
#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)
blender::gpu::Batch * batch
GlyphCacheBLF * glyph_cache
GlyphQuad glyph_data[BLF_BATCH_DRAW_LEN_MAX]
blender::gpu::StorageBuf * glyph_buf
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 ColorSpace * colorspace
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
blender::gpu::Texture * texture
friend bool operator==(const GlyphCacheKey &a, const GlyphCacheKey &b)
int ascii_table[KERNING_CACHE_TABLE_SIZE][KERNING_CACHE_TABLE_SIZE]