Blender V5.0
GlyphBLF Struct Reference

#include <blf_internal_types.hh>

Public Member Functions

Glyph Access (Ensure/Free)
 ~GlyphBLF ()

Public Attributes

unsigned int c
FT_UInt idx
ft_pix box_xmin
ft_pix box_xmax
ft_pix box_ymin
ft_pix box_ymax
ft_pix advance_x
uint8_t subpixel
ft_pix lsb_delta
ft_pix rsb_delta
int offset
unsigned char * bitmap
int dims [2]
int pitch
int num_channels
int pos [2]
GlyphCacheBLFglyph_cache

Detailed Description

Definition at line 178 of file blf_internal_types.hh.

Constructor & Destructor Documentation

◆ ~GlyphBLF()

GlyphBLF::~GlyphBLF ( )

Definition at line 1423 of file blf_glyph.cc.

References bitmap, and MEM_freeN().

Member Data Documentation

◆ advance_x

◆ bitmap

unsigned char* GlyphBLF::bitmap

Bitmap data, from freetype. Take care that this can be NULL.

Definition at line 205 of file blf_internal_types.hh.

Referenced by blf_glyph_draw(), blf_glyph_draw_buffer(), blf_svg_icon_bitmap(), and ~GlyphBLF().

◆ box_xmax

ft_pix GlyphBLF::box_xmax

Definition at line 187 of file blf_internal_types.hh.

Referenced by blf_font_boundbox_ex(), and blf_font_boundbox_foreach_glyph().

◆ box_xmin

ft_pix GlyphBLF::box_xmin

Glyph bounding-box.

Definition at line 186 of file blf_internal_types.hh.

Referenced by blf_font_boundbox_ex(), and blf_font_boundbox_foreach_glyph().

◆ box_ymax

ft_pix GlyphBLF::box_ymax

Definition at line 189 of file blf_internal_types.hh.

Referenced by blf_font_boundbox_ex(), and blf_font_boundbox_foreach_glyph().

◆ box_ymin

ft_pix GlyphBLF::box_ymin

Definition at line 188 of file blf_internal_types.hh.

Referenced by blf_font_boundbox_ex(), and blf_font_boundbox_foreach_glyph().

◆ c

unsigned int GlyphBLF::c

The character, as UTF32.

Definition at line 180 of file blf_internal_types.hh.

Referenced by blf_font_draw_mono(), blf_font_wrap_apply(), blf_glyph_ensure_subpixel(), and blf_kerning().

◆ dims

◆ glyph_cache

GlyphCacheBLF* GlyphBLF::glyph_cache

Definition at line 219 of file blf_internal_types.hh.

Referenced by blf_glyph_draw().

◆ idx

FT_UInt GlyphBLF::idx

Freetype2 index, to speed-up the search.

Definition at line 183 of file blf_internal_types.hh.

Referenced by blf_kerning().

◆ lsb_delta

ft_pix GlyphBLF::lsb_delta

The difference in bearings when hinting is active, zero otherwise.

Definition at line 195 of file blf_internal_types.hh.

Referenced by blf_kerning().

◆ num_channels

int GlyphBLF::num_channels

Definition at line 210 of file blf_internal_types.hh.

Referenced by blf_glyph_draw(), blf_svg_icon_bitmap(), and blf_texture_draw().

◆ offset

int GlyphBLF::offset

Position inside the texture where this glyph is store.

Definition at line 199 of file blf_internal_types.hh.

Referenced by blf_glyph_draw(), and blf_texture_draw().

◆ pitch

int GlyphBLF::pitch

Definition at line 209 of file blf_internal_types.hh.

Referenced by blf_glyph_draw_buffer(), and blf_svg_icon_bitmap().

◆ pos

int GlyphBLF::pos[2]

X and Y bearing of the glyph. The X bearing is from the origin to the glyph left bounding-box edge. The Y bearing is from the baseline to the top of the glyph edge.

Definition at line 217 of file blf_internal_types.hh.

Referenced by blf_glyph_calc_rect(), blf_glyph_calc_rect_test(), and blf_glyph_draw_buffer().

◆ rsb_delta

ft_pix GlyphBLF::rsb_delta

Definition at line 196 of file blf_internal_types.hh.

Referenced by blf_kerning().

◆ subpixel

uint8_t GlyphBLF::subpixel

Definition at line 192 of file blf_internal_types.hh.

Referenced by blf_glyph_ensure_subpixel().


The documentation for this struct was generated from the following files: