VSF Documented
Data Fields
_lv_font_struct Struct Reference

#include <lvgl.h>

Data Fields

bool(* get_glyph_dsc )(const struct _lv_font_struct *, lv_font_glyph_dsc_t *, uint32_t letter, uint32_t letter_next)
 
const uint8_t *(* get_glyph_bitmap )(const struct _lv_font_struct *, uint32_t)
 
lv_coord_t line_height
 
lv_coord_t base_line
 
uint8_t subpx: 2
 
void * dsc
 

Detailed Description

Describe the properties of a font

Field Documentation

◆ get_glyph_dsc

bool(* _lv_font_struct::get_glyph_dsc) (const struct _lv_font_struct *, lv_font_glyph_dsc_t *, uint32_t letter, uint32_t letter_next)

Get a glyph's descriptor from a font

◆ get_glyph_bitmap

const uint8_t *(* _lv_font_struct::get_glyph_bitmap) (const struct _lv_font_struct *, uint32_t)

Get a glyph's bitmap from a font

◆ line_height

lv_coord_t _lv_font_struct::line_height

The real line height where any text fits

◆ base_line

lv_coord_t _lv_font_struct::base_line

Base line measured from the top of the line_height

◆ subpx

uint8_t _lv_font_struct::subpx

An element of lv_font_subpx_t

◆ dsc

void* _lv_font_struct::dsc

Store implementation specific or run_time data or caching here