From 6efc997a02e3125290f9b0883a1a880b9e14bd4b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 17 Dec 2021 21:27:17 +0100 Subject: Updated Unicode utf8 byte limit in docs. --- src/Fl_Text_Display.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 7cf1e6eec..64117da72 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -396,7 +396,7 @@ void Fl_Text_Display::buffer( Fl_Text_Buffer *buf ) { \note Style information in the style buffer must have the same byte offset as the corresponding character in the text buffer. UTF-8 characters can have a - length of four, in some cases even six bytes. Style information must take + maximum length of four bytes. Style information must take this into account and fill the unused bytes with 0. See `fl_utf8len()`. Text: "*g* r ü *n*" , where normal style is 'A', and bold is 'B' -- cgit v1.2.3