From 2f808965a1892e11cb84f50c6546871d2f2aa122 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Thu, 16 Dec 2021 21:01:51 -0500 Subject: [PATCH] docs(font) fix example to match v8 Closes #2873. Thanks for bringing this to our attention @rafaelcorsi. --- docs/overview/font.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/overview/font.md b/docs/overview/font.md index e178573ee..df5cf0dfd 100644 --- a/docs/overview/font.md +++ b/docs/overview/font.md @@ -7,7 +7,7 @@ In LVGL fonts are collections of bitmaps and other information required to render images of individual letters (glyph). A font is stored in a `lv_font_t` variable and can be set in a style's *text_font* field. For example: ```c -lv_style_set_text_font(&my_style, LV_STATE_DEFAULT, &lv_font_montserrat_28); /*Set a larger font*/ +lv_style_set_text_font(&my_style, &lv_font_montserrat_28); /*Set a larger font*/ ``` Fonts have a **bpp (bits per pixel)** property. It shows how many bits are used to describe a pixel in a font. The value stored for a pixel determines the pixel's opacity. @@ -266,4 +266,4 @@ lv_font_t *roboto = my_font_load_function(); lv_font_t *droid_sans_fallback = my_font_load_function(); /* So now we can display Roboto for supported characters while having wider characters set support */ roboto->fallback = droid_sans_fallback; -``` \ No newline at end of file +```