"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:
parent
64eeec1a98
commit
1b6ee72e87
5 changed files with 133 additions and 24 deletions
|
|
@ -19,7 +19,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: May 29, 2023
|
||||
Last updated: May 31, 2023
|
||||
*/
|
||||
|
||||
#ifndef FONTS_H
|
||||
|
|
@ -164,5 +164,6 @@ void sdl_color_to_pango_color(SDL_Color sdl_color, SDLPango_Matrix * pango_color
|
|||
|
||||
int load_user_fonts(SDL_Surface * screen, SDL_Texture * texture,
|
||||
SDL_Renderer * renderer, void *vp, const char *restrict const locale);
|
||||
char * ask_pango_for_font(char * pangodesc);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue