"uifont" option: tell us what we wanted & what we got

The requested font & actual font loaded will be echo'd to STDOUT
when specifying the `uifont` option.

This uses Pango library directly (I was unable to convice SDL2_Pango.h
to actually notice that pango.h was #include'd before it, and expose
its SDLPango_GetPangoFontDescription() function!).  This is okay,
since we want to also add a "--uifont list" option (or similar),
that will list all of the available fonts, if a user wishes to
query them.  (And similar code will be added to tuxpaint-config to make
the setting available as a pull-down, rather than (or as well as) a
freeform type-in field.)
This commit is contained in:
Bill Kendrick 2023-06-01 00:20:41 -07:00
parent 64eeec1a98
commit 1b6ee72e87
5 changed files with 133 additions and 24 deletions

View file

@ -6,7 +6,7 @@ Copyright (c) 2002-2023
Various contributors (see below, and AUTHORS.txt)
https://tuxpaint.org/
2023.May.31 (0.9.31)
2023.June.1 (0.9.31)
* New Magic Tools:
----------------
* Loops - Draw loop-the-loops.
@ -69,6 +69,7 @@ https://tuxpaint.org/
* WIP Ability to specify a font for Tux Paint's UI (button labels,
dialog boxes, Tux tip text at the bottom).
+ The requested font & actual font loaded will be echo'd to STDOUT
+ TODO Provide a way to list available fonts ("--uifont list"?)
+ TODO List fonts in a pull-down menu in Tux Paint Config.?
Closes https://sourceforge.net/p/tuxpaint/feature-requests/146/