From 0a9772bcdfbff18597387cde1b1e886533b53e05 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sun, 2 Oct 2022 18:22:30 +0200 Subject: [PATCH] docs: add lv_example_tiny_ttf_2 to index.rst --- examples/libs/tiny_ttf/index.rst | 9 ++++++++- examples/libs/tiny_ttf/lv_example_tiny_ttf_1.c | 2 +- examples/libs/tiny_ttf/lv_example_tiny_ttf_2.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/examples/libs/tiny_ttf/index.rst b/examples/libs/tiny_ttf/index.rst index b6746981b..55d8dba9e 100644 --- a/examples/libs/tiny_ttf/index.rst +++ b/examples/libs/tiny_ttf/index.rst @@ -1,6 +1,13 @@ -Open a front with Tiny TTF +Open a front with Tiny TTF from data array """"""""""""""""""""""""""""""""""""""""""""""" .. lv_example:: libs/tiny_ttf/lv_example_tiny_ttf_1 :language: c + +Load a font with Tiny_TTF from file +""""""""""""""""""""""""""""""""""""""""""""""" + +.. lv_example:: libs/tiny_ttf/lv_example_tiny_ttf_2 + :language: c + diff --git a/examples/libs/tiny_ttf/lv_example_tiny_ttf_1.c b/examples/libs/tiny_ttf/lv_example_tiny_ttf_1.c index 06b8a36f3..9f2358323 100644 --- a/examples/libs/tiny_ttf/lv_example_tiny_ttf_1.c +++ b/examples/libs/tiny_ttf/lv_example_tiny_ttf_1.c @@ -18,7 +18,7 @@ void lv_example_tiny_ttf_1(void) /*Create a label with the new style*/ lv_obj_t * label = lv_label_create(lv_scr_act()); lv_obj_add_style(label, &style, 0); - lv_label_set_text(label, "Hello world\nI'm a font created with Tiny TTF"); + lv_label_set_text(label, "Hello world\nI'm a font\ncreated\nwith Tiny TTF"); lv_obj_center(label); } #endif diff --git a/examples/libs/tiny_ttf/lv_example_tiny_ttf_2.c b/examples/libs/tiny_ttf/lv_example_tiny_ttf_2.c index 2567ad553..bc0bae496 100644 --- a/examples/libs/tiny_ttf/lv_example_tiny_ttf_2.c +++ b/examples/libs/tiny_ttf/lv_example_tiny_ttf_2.c @@ -16,7 +16,7 @@ void lv_example_tiny_ttf_2(void) /*Create a label with the new style*/ lv_obj_t * label = lv_label_create(lv_scr_act()); lv_obj_add_style(label, &style, 0); - lv_label_set_text(label, "Hello world\nI'm a font created with Tiny TTF"); + lv_label_set_text(label, "Hello world\nI'm a font\ncreated\nwith Tiny TTF"); lv_obj_center(label); } #endif