Re: [Tuxpaint-devel] Per-locale default font
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2023-06-13 07:53:05
|
(Removing i18n list from this thread, since I've gotten us into the development weeds.) On Mon, Jun 12, 2023 at 11:55:37PM -0700, Bill Kendrick wrote: <snip> > I'm going to further extend things a bit to allow for alternative > fonts (e.g., if you have a full font, use that rather than Tux Paint's > subset alternative; e.g. for Chinese Traditional). Done. > And I'm also going to try and get Tux Paint Config. to do the same > thing (ask FontConfig to look at Tux Paint's font directory, before > Tux Paint Config. tries to load and list available fonts in its UI). And done. (This required adding a "TUXPAINT_DATA_PREFIX" to TPC's Makefile, so there's a lot of assumptions going on here! I also have no clue how this will play with, e.g., the macOS version :-/ ) It all seems to work for me on Linux, which is a start. And I _believe_ I've got the default locale fonts all rigged up properly by giving their family names in `fonts.c` (whereas back in the SDL_ttf days, we'd just try to load "<locale_code>.ttf"). *Whew!* Mark, Shin-ichi, and Luc, please bang on these things macOS, Windows, and Haiku! Thanks. -- -bill! Sent from my computer |