Re: [Tuxpaint-devel] UI font configuration
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2023-06-01 07:36:00
|
On Wed, May 31, 2023 at 11:09:56AM +0900, Shin-ichi TOYAMA wrote: <snip> > * It would be beneficail to get a list of available fonts (--uifont help ?) I was just able to write a barebones function that causes Pango to try and load a font, based on the description (string) given; i.e., what's provided to the "uifont" argument. It then returns the description of the _actual_ font that was loaded. So for example, if I do "tuxpaint --uifont bookman", Pango finds "URW Bookman", and I see this on STDOUT: Requested UI font described by "bookman" Actual UI font will be "URW Bookman" I need to get to bed, but hopefully tomorrow I can work on > [Tux Paint Config] > * Apply button should be enabled after editting text box. This already happens for me. Note that focus needs to leave the field. This is also true with the type-in values in the Joystick tab. I agree that we probably want it to act differently (make "Apply" (and "Reset") activate upon _modifying_ a field, since that's the friendliest. We should do that with those Joystick fields as well. A quick Google seems to indicate that FL_WHEN_CHANGED, vs FL_WHEN_RELEASE, is what's wanted... somewhere. I'm still a newbie with FLTK. > * It would be benefical if user could select a font from available font list. Hopefully I can duplicate the code I'll add to TP, to make this possible within TPC. (It will mean that it suddenly depends on Pango library. But since TP depends on SDL2_Pango, which in turn depends on Pango, this shouldn't be the end of the world, I hope!) Then it sounds like it's possible by changing from an Fl_Input to an Fl_Input_Choice widget. -bill! |