mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-04 23:04:23 +08:00
Add ability to customize LV_TXT_COLOR_CMD
This commit is contained in:
@@ -357,6 +357,9 @@ typedef void * lv_font_user_data_t;
|
|||||||
* Depends on LV_TXT_LINE_BREAK_LONG_LEN. */
|
* Depends on LV_TXT_LINE_BREAK_LONG_LEN. */
|
||||||
#define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
|
#define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3
|
||||||
|
|
||||||
|
/* The control character to use for signalling text recoloring. */
|
||||||
|
#define LV_TXT_COLOR_CMD "#"
|
||||||
|
|
||||||
/* Support bidirectional texts.
|
/* Support bidirectional texts.
|
||||||
* Allows mixing Left-to-Right and Right-to-Left texts.
|
* Allows mixing Left-to-Right and Right-to-Left texts.
|
||||||
* The direction will be processed according to the Unicode Bidirectioanl Algorithm:
|
* The direction will be processed according to the Unicode Bidirectioanl Algorithm:
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ extern "C" {
|
|||||||
/*********************
|
/*********************
|
||||||
* DEFINES
|
* DEFINES
|
||||||
*********************/
|
*********************/
|
||||||
|
#ifndef LV_TXT_COLOR_CMD
|
||||||
#define LV_TXT_COLOR_CMD "#"
|
#define LV_TXT_COLOR_CMD "#"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define LV_TXT_ENC_UTF8 1
|
#define LV_TXT_ENC_UTF8 1
|
||||||
#define LV_TXT_ENC_ASCII 2
|
#define LV_TXT_ENC_ASCII 2
|
||||||
|
|||||||
Reference in New Issue
Block a user