lv_freetype.h

API reference for lv_freetype.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_freetype_private.h

Functions

lv_freetype_outline_get_scale

Get the scale of a FreeType font.

 
uint32_t lv_freetype_outline_get_scale(const lv_font_t *font)
Parameters
NameTypeDescription
fontconst lv_font_t *The FreeType font to get the scale of.

Returns: uint32_t — The scale of the FreeType font.

Enums

lv_freetype_font_style_t

NameValue
LV_FREETYPE_FONT_STYLE_NORMAL0
LV_FREETYPE_FONT_STYLE_ITALIC1 << 0
LV_FREETYPE_FONT_STYLE_BOLD1 << 1
Used by 1 function
  • lv_freetype_font_create — param style

lv_freetype_font_render_mode_t

NameValue
LV_FREETYPE_FONT_RENDER_MODE_BITMAP0
LV_FREETYPE_FONT_RENDER_MODE_OUTLINE1
Used by 1 function
  • lv_freetype_font_create — param render_mode

lv_freetype_outline_type_t

Name
LV_FREETYPE_OUTLINE_END
LV_FREETYPE_OUTLINE_MOVE_TO
LV_FREETYPE_OUTLINE_LINE_TO
LV_FREETYPE_OUTLINE_CUBIC_TO
LV_FREETYPE_OUTLINE_CONIC_TO

Typedefs

LV_FT_FONT_STYLE

 
typedef lv_freetype_font_style_t LV_FT_FONT_STYLE

lv_freetype_outline_t

 
typedef void* lv_freetype_outline_t

lv_freetype_font_src_t

 
typedef const char lv_freetype_font_src_t

Macros

LV_FREETYPE_F26DOT6_TO_INT

 
#define LV_FREETYPE_F26DOT6_TO_INT(x) \
    ((x) >> 6)

LV_FREETYPE_F26DOT6_TO_FLOAT

 
#define LV_FREETYPE_F26DOT6_TO_FLOAT(x) \
    ((float)(x) / 64)

FT_FONT_STYLE_NORMAL

 
#define FT_FONT_STYLE_NORMAL LV_FREETYPE_FONT_STYLE_NORMAL

FT_FONT_STYLE_ITALIC

 
#define FT_FONT_STYLE_ITALIC LV_FREETYPE_FONT_STYLE_ITALIC

FT_FONT_STYLE_BOLD

 
#define FT_FONT_STYLE_BOLD LV_FREETYPE_FONT_STYLE_BOLD

Variables

lv_freetype_font_class

 
const lv_font_class_t lv_freetype_font_class

Dependencies

How is this guide?

Last updated on

On this page