summaryrefslogtreecommitdiff
path: root/test/utf8.cxx
AgeCommit message (Collapse)Author
2 dayswipmaxim nikonov
4 daysImprove test/utf8 demo by using Fl_Grid and moreAlbrecht Schlosser
- separate layout and contents of example text widgets - use Fl_Grid for more flexibility in the layout of the main window - reformat some parts but not all code to FLTK style - add comments, fix font style calculation ("near fixed pitch") - add tooltips with user instructions to some of the widgets - add "rainbow" emoji as colored emoji example - reformat contents of the "unichar drop box"
13 daysRemove usage of fl_utf8froma(), improve layout of test/utf8Albrecht Schlosser
- use demo strings in UTF-8 encoding rather than converting them which also simplifies the code - replace some hard-coded width and pos. values with constants - enlarge width of text widgets (left column) of the main window - replace display of Unicode range U+D800 ... U+DFFF with a text explaining that this space is used by UTF-16 surrogate pairs to prevent warning messages about invalid Unicode text.
2025-01-19tedst/utf8: Change default font used under Windows for "Unicode Display Test"ManoloFLTK
The Windows doc at https://learn.microsoft.com/en-us/typography/font-list/arial-unicode-ms of the "Arial Unicode MS" font reads "The font was included with Office but not Windows. … We stopped servicing and updating Arial Unicode and no longer install it as part of Office." Using that font is therefore not the best choice. This commmit uses "Microsoft Sans Serif" instead available in all Windows versions since Windows 2000.
2023-05-08Fix some but not all memory leaks in test/utf8 demoAlbrecht Schlosser
Note: Fl_Input::value() copies the string to an internal buffer, fl_strdup() before value() is not necessary.
2023-04-14test/utf8: improve use of Fl::set_fonts(const char *) across platformsManoloFLTK
2023-01-21Animated GIF support (Fl_Anim_GIF_Image class) (#375)wcout
2022-12-30Use `FL_OVERRIDE` for all overridden virtual methods (#611)Matthias Melcher
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
2022-11-11Fix Visual Studio compiler warningsAlbrecht Schlosser
2022-11-08Testing emojis in test/utf8.Matthias Melcher
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2021-08-31Fix more MSVC warnings in test apps (#109)Albrecht Schlosser
- test/checkers.cxx - test/cube.cxx - test/offscreen.cxx - test/unittest_simple_terminal.cxx - test/utf8.cxx
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-05-26Clarify demo code and add comment with "translated" stringAlbrecht Schlosser
Add the example string in binary "latin1" (ISO-8859-1) encoding in a comment as clear text for reference (code is UTF-8 encoded).
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2018-02-09Replace "WIN32" with "_WIN32" or "Windows".Albrecht Schlosser
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31Fix compiler warnings (STR 2988), porting from branch-1.3.Albrecht Schlosser
This commit is the accumulated patch introduced in branch 1.3 in svn r 11094, 11095, and 11096. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-01Modify the utf8 test demo code to handle surrogate pairs.Ian MacArthur
It was hard coded to cover the range 0 to 0xFFFF, i.e. the Basic multilingual plane, even though the demo code allowed any start index, for any plane, to be entered on the CLI... As a result, attempts to view supplemental planes were always just folded back into the BMP. This change makes the code display the 64K Unicode points starting at the index given on the CLI, so that the supplemental planes *can* now be viewed and tested. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02set file properties.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02More typos.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01Text sample field in utf8 test resizableMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01Modified ut8 test program formatting to get closer to FLTK coding standards (2)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01Modified ut8 test program formatting to get closer to FLTK coding standardsMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-28Changed references to fltk-bugs@fltk.org -> STR form.Greg Ercolano
Todo: LGPL license file references (COPYING, license.dox, etc) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-23Replaced _WIN32 symbols that had crept in with UTF-8 and theAlbrecht Schlosser
new Fl_Table widget with WIN32. Todo: check, if the conditional in test/table.cxx is useful at all git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-17Starting to allow international (unicode) keystrokes as shortcuts.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-21Most test demos converted to use Fl_Double_Window Greg Ercolano
to prevent flicker when new users run test/demo programs. For details, see fltk.development thread started 04/16/09, "Subject: browser demo flicker". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-12Reorganized Unittest / fixed and improved OS X keybord support and ↵Matthias Melcher
alternative input methods / fixed OS X utf8 DnD git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-29minor compile warning solved in test/utf8.cxxFabien Costantini
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6649 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Cahngad copyrights in 'test'Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-19Updating fl_utf8.h references. Fixing copyright date in .fl files.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16Doxygen documentation : took the opportunity to update copyright info as we ↵Fabien Costantini
modified already in batch almost all sources, added also a fil doxygen command to class headers to harmonize with original matt Fl_Widget dox. format. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-10Merging the UTF8 patch, consisting of O'ksi'd s original 1.1.6 patch and ↵Matthias Melcher
additions by Ian. PLEASE BE AWARE that the patch in its current incarnation is a regression in many aspects and further work is required before we can announce Unicode support. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121