LittlevGL  3.20.00.19
Data Structures | Macros | Typedefs | Functions
lv_font.h File Reference
#include "../../../lv_conf.h"
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "lv_symbol_def.h"
Include dependency graph for lv_font.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lv_font_glyph_dsc_t
 
struct  _lv_font_struct
 

Macros

#define LV_FONT_WIDTH_FRACT_DIGIT   4
 
#define LV_FONT_KERN_POSITIVE   0
 
#define LV_FONT_KERN_NEGATIVE   1
 
#define LV_FONT_DECLARE(font_name)   extern lv_font_t font_name;
 

Typedefs

typedef struct _lv_font_struct lv_font_t
 

Functions

const uint8_t * lv_font_get_glyph_bitmap (const lv_font_t *font_p, uint32_t letter)
 
bool lv_font_get_glyph_dsc (const lv_font_t *font_p, lv_font_glyph_dsc_t *dsc_out, uint32_t letter, uint32_t letter_next)
 
uint16_t lv_font_get_glyph_width (const lv_font_t *font, uint32_t letter, uint32_t letter_next)
 

Macro Definition Documentation

§ LV_FONT_WIDTH_FRACT_DIGIT

#define LV_FONT_WIDTH_FRACT_DIGIT   4

§ LV_FONT_KERN_POSITIVE

#define LV_FONT_KERN_POSITIVE   0

§ LV_FONT_KERN_NEGATIVE

#define LV_FONT_KERN_NEGATIVE   1

§ LV_FONT_DECLARE

#define LV_FONT_DECLARE (   font_name)    extern lv_font_t font_name;

Typedef Documentation

§ lv_font_t

typedef struct _lv_font_struct lv_font_t

Function Documentation

§ lv_font_get_glyph_bitmap()

const uint8_t* lv_font_get_glyph_bitmap ( const lv_font_t font_p,
uint32_t  letter 
)

Return with the bitmap of a font.

Parameters
font_ppointer to a font
letteran UNICODE character code
Returns
pointer to the bitmap of the letter

§ lv_font_get_glyph_dsc()

bool lv_font_get_glyph_dsc ( const lv_font_t font_p,
lv_font_glyph_dsc_t dsc_out,
uint32_t  letter,
uint32_t  letter_next 
)

Get the descriptor of a glyph

Parameters
font_ppointer to font
dsc_outstore the result descriptor here
letteran UNICODE letter code
Returns
true: descriptor is successfully loaded into dsc_out. false: the letter was not found, no data is loaded to dsc_out

§ lv_font_get_glyph_width()

uint16_t lv_font_get_glyph_width ( const lv_font_t font,
uint32_t  letter,
uint32_t  letter_next 
)

Get the width of a glyph with kerning

Parameters
fontpointer to a font
letteran UNICODE letter
letter_nextthe next letter after letter. Used for kerning
Returns
the width of the glyph
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale