Re: [Tuxpaint-devel] Using libtextwrap in Tux Paint Config.
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Benson M. <ben...@em...> - 2021-11-15 09:09:32
|
On 11/15/21 12:42 AM, Bill Kendrick wrote: > On Sun, Nov 14, 2021 at 05:22:59PM +0300, Benson Muite wrote: > > I admit I did not look at the code. I was it was readily available > in Ubuntu 20.04, and it seemed to be the only C-based library I > could track down in Ubuntu, so I went with it. :) > > I'm glad it can be build for Fedora; I know we have maintained > our own versions of some packages -- http://tuxpaint.org/download/linux-rpm/ > includes some SDL packages that people may need, for example. > > Shin-ichi, what are your thoughts on this? > > A bigger concern, of course, is whether we can build it on Windows > and other platforms where `tuxpaint-config` is available. > > >> The package author Tomohiro KUBOTA seems not to be reachable[5]. > > :( > > >> Text wrapping is also important in Web browser[6][7][8], but may be >> different if intended for children[9] > > Keep in mind that Tux Paint Config. is NOT intended for children, > but for adults who are adjusting Tux Paint's settings. Thanks for the clarification. > > I assume that SDL_Pango is doing a fine enough job word-wrapping > for us, as this particular situation never came up in Tux Paint > itself, that I'm aware. > > It's just a failing of FLTK itself. :-/ > > Could Pango be used for layouts since it supports a variety of different languages? Firefox has its own layout engine [1], which minimizes dependencies. libtextwrap is well written and could also be updated to use only unicode dependencies so it builds easily on a variety of operating systems? Another option might be libunibreak[2]. SDL_Pango[3] has not had many updates, but could also be migrated to SDL2. Happy to look further into these options. [1] https://searchfox.org/mozilla-central/source/intl/icu/source/common/dictbe.cpp [2] https://github.com/adah1972/libunibreak [3] https://sourceforge.net/projects/sdlpango/files/ [4] https://github.com/orgs/libsdl-org/repositories |