Add ability to customize LV_TXT_COLOR_CMD

This commit is contained in:
Themba Dube
2019-11-18 09:30:14 -05:00
parent 1ee7e1961e
commit 5612856bca
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -356,7 +356,10 @@ typedef void * lv_font_user_data_t;
/* Minimum number of characters in a long word to put on a line after a break.
* Depends on LV_TXT_LINE_BREAK_LONG_LEN. */
#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.
* Allows mixing Left-to-Right and Right-to-Left texts.
* The direction will be processed according to the Unicode Bidirectioanl Algorithm:
+2
View File
@@ -27,7 +27,9 @@ extern "C" {
/*********************
* DEFINES
*********************/
#ifndef LV_TXT_COLOR_CMD
#define LV_TXT_COLOR_CMD "#"
#endif
#define LV_TXT_ENC_UTF8 1
#define LV_TXT_ENC_ASCII 2