From 6a047855db3f2086771147682e4d09611b50cbe1 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sun, 11 Dec 2022 11:00:08 -0800 Subject: Move utf-8 box drawing string into .cxx It was decided today it is ok to use utf-8 strings in source, so consolidating. --- test/unittest_unicode.cxx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'test/unittest_unicode.cxx') diff --git a/test/unittest_unicode.cxx b/test/unittest_unicode.cxx index 65cec32e5..65cea5628 100644 --- a/test/unittest_unicode.cxx +++ b/test/unittest_unicode.cxx @@ -14,6 +14,8 @@ // https://www.fltk.org/bugs.php // +// FLTK DEVS: utf-8 encoding must be enabled to edit this file. + #include "unittests.h" #include @@ -24,14 +26,25 @@ #include #include -#include "unittest_unicode_utf8.h" // defines utf8_box_test[] +static const char *utf8_box_test = + "╳╳ ██ ▏▏┏━━┓ ╔══╗ ╔═╦═╗ ██████\n" + "╳╳ ██ ▏▏┃ ┃ ║ ║ ╠═╬═╣ ██ ██\n" + "╳╳ ██ ▏▏┗━━┛ ╚══╝ ╚═╩═╝ ██████\n" + "\n" + "underbar: ______\n" + " overbar: ‾‾‾‾‾‾\n" + "\n" + "underbar/overbar alternate:\n" + "\n" + "___‾‾‾___‾‾‾___‾‾‾___‾‾‾___\n" + "‾‾‾___‾‾‾___‾‾‾___‾‾‾___‾‾‾\n"; + static const char *helptext = "In this test, ideally the box's lines should all be touching " "without white space between. Underbar and overbars should both " "be visible and not touching. All the above should be unaffected " "by different font sizes and font settings."; - class UnicodeBoxTest : public Fl_Group { Fl_Text_Buffer *textbuffer; Fl_Text_Display *textdisplay; -- cgit v1.2.3