Blender V5.3
blf_internal_types.hh File Reference
#include <atomic>
#include <cmath>
#include "DNA_vec_types.h"
#include "BLF_api.hh"
#include "BLI_enum_flags.hh"
#include "BLI_map.hh"
#include "BLI_mutex.hh"
#include "BLI_vector.hh"
#include "GPU_shader_shared.hh"
#include "GPU_storage_buffer.hh"
#include "GPU_texture.hh"
#include <ft2build.h>

Go to the source code of this file.

Classes

struct  blender::BatchBLF
struct  blender::KerningCacheBLF
struct  blender::GlyphCacheKey
struct  blender::GlyphCacheBLF
struct  blender::GlyphBLF
struct  blender::FontBufInfoBLF
struct  blender::FontMetrics
struct  blender::FontBLF

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu
namespace  blender::ocio

Macros

#define BLF_VARIATIONS_MAX   16
#define MAKE_DVAR_TAG(a, b, c, d)
#define BLF_VARIATION_AXIS_WEIGHT   MAKE_DVAR_TAG('w', 'g', 'h', 't')
#define BLF_VARIATION_AXIS_SLANT   MAKE_DVAR_TAG('s', 'l', 'n', 't')
#define BLF_VARIATION_AXIS_WIDTH   MAKE_DVAR_TAG('w', 'd', 't', 'h')
#define BLF_VARIATION_AXIS_SPACING   MAKE_DVAR_TAG('s', 'p', 'a', 'c')
#define BLF_VARIATION_AXIS_OPTSIZE   MAKE_DVAR_TAG('o', 'p', 's', 'z')
#define BLF_BATCH_DRAW_LEN_MAX   128
#define KERNING_CACHE_TABLE_SIZE   128
#define KERNING_ENTRY_UNSET   INT_MAX

Enumerations

enum class  blender::GlyphFlagBLF : uint8_t { blender::None = 0 , blender::Combining = (1 << 0) }

Functions

 blender::ENUM_OPERATORS (GlyphFlagBLF)

Sub-Pixel Offset & Utilities

Free-type uses fixed point precision for sub-pixel offsets. Utility functions here avoid exposing the details in the BLF API.

#define FT_PIX_FLOOR(x)
#define FT_PIX_ROUND(x)
#define FT_PIX_CEIL(x)
using blender::ft_pix = int32_t
int blender::ft_pix_to_int (ft_pix v)
int blender::ft_pix_to_int_floor (ft_pix v)
int blender::ft_pix_to_int_ceil (ft_pix v)
ft_pix blender::ft_pix_from_int (int v)
ft_pix blender::ft_pix_from_float (float v)

Macro Definition Documentation

◆ BLF_BATCH_DRAW_LEN_MAX

#define BLF_BATCH_DRAW_LEN_MAX   128

Definition at line 106 of file blf_internal_types.hh.

Referenced by blender::blf_texture_draw().

◆ BLF_VARIATION_AXIS_OPTSIZE

#define BLF_VARIATION_AXIS_OPTSIZE   MAKE_DVAR_TAG('o', 'p', 's', 'z')

Definition at line 58 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_set_variation_optical_size().

◆ BLF_VARIATION_AXIS_SLANT

#define BLF_VARIATION_AXIS_SLANT   MAKE_DVAR_TAG('s', 'l', 'n', 't')

Definition at line 55 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_set_variation_slant().

◆ BLF_VARIATION_AXIS_SPACING

#define BLF_VARIATION_AXIS_SPACING   MAKE_DVAR_TAG('s', 'p', 'a', 'c')

Definition at line 57 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_set_variation_spacing().

◆ BLF_VARIATION_AXIS_WEIGHT

#define BLF_VARIATION_AXIS_WEIGHT   MAKE_DVAR_TAG('w', 'g', 'h', 't')

◆ BLF_VARIATION_AXIS_WIDTH

#define BLF_VARIATION_AXIS_WIDTH   MAKE_DVAR_TAG('w', 'd', 't', 'h')

Definition at line 56 of file blf_internal_types.hh.

Referenced by blender::blf_glyph_set_variation_width().

◆ BLF_VARIATIONS_MAX

#define BLF_VARIATIONS_MAX   16

◆ FT_PIX_CEIL

#define FT_PIX_CEIL ( x)
Value:
((x) + 63)

Definition at line 77 of file blf_internal_types.hh.

Referenced by blender::ft_pix_to_int_ceil().

◆ FT_PIX_FLOOR

#define FT_PIX_FLOOR ( x)
Value:
((x) & ~63)

Definition at line 75 of file blf_internal_types.hh.

◆ FT_PIX_ROUND

#define FT_PIX_ROUND ( x)

◆ KERNING_CACHE_TABLE_SIZE

#define KERNING_CACHE_TABLE_SIZE   128

Number of characters in #KerningCacheBLF.table.

Definition at line 109 of file blf_internal_types.hh.

Referenced by blender::blf_kerning(), and blender::blf_setup_face().

◆ KERNING_ENTRY_UNSET

#define KERNING_ENTRY_UNSET   INT_MAX

A value in the kerning cache that indicates it is not yet set.

Definition at line 112 of file blf_internal_types.hh.

Referenced by blender::blf_kerning(), and blender::blf_setup_face().

◆ MAKE_DVAR_TAG

#define MAKE_DVAR_TAG ( a,
b,
c,
d )
Value:
((uint32_t(a) << 24u) | (uint32_t(b) << 16u) | (uint32_t(c) << 8u) | (uint32_t(d)))

Definition at line 51 of file blf_internal_types.hh.