Re: [Tuxpaint-devel] [Tuxpaint-i18n] 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 06:55:45
|
On Mon, Jun 12, 2023 at 10:18:35PM -0700, Bill Kendrick wrote: > On Mon, Jun 12, 2023 at 09:17:55PM -0700, Bill Kendrick wrote: > <snip> > > Yeah, I think that's what's happening for me on Linux as well. > > Ever since switching from SDL_ttf and attempting to load "<locale>.ttf" > > files, to SDL_Pango (now SDL2_Pango), we basically lost the ability to > > use those fonts, and have been shipping them meaninglessly. :-D Oops! > <snip> > > Of course, going back to the beginning of this email, the main issue at > > hand is Tux Paint, via SDL2_Pango, doesn't KNOW about these fonts yet. > > At least, not for me, not on Linux! > > Well, I tried to convince FontConfig to add Tux Paint's shipped fonts > (hard-coding `/usr/local/share/tuxpaint/fonts/` for the moment) to > the list of directories to look at, but it seems to be refusing to. :-/ > > Anyone out here have any experience with this stuff? Argh, I think I figured it out, unless I'm hallucinating or testing it all wrong. :) (I was adding Tux Paint's font directory _after_ we tried loading the uifont.) 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). 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). -bill! |