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 05:18:41
|
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? I added a bit of (all-the-time, for now) debugging output to stdout to have Tux Paint dump the directories where FontConfig is looking. On my system, for example, I get: FontConfigGetFontDirs(): * /usr/share/fonts * /usr/local/share/fonts * /home/kendrick/.local/share/fonts * /home/kendrick/.fonts * /usr/share/fonts/croscore * /usr/share/fonts/crosextra * /usr/share/fonts/dejavu * /usr/share/fonts/ko-nanum * /usr/share/fonts/lohit-cros ... * /usr/share/fonts/woff * /home/kendrick/.fonts/a * /home/kendrick/.fonts/e * /home/kendrick/.fonts/h * /home/kendrick/.fonts/kfontinst * /home/kendrick/.fonts/m * /usr/share/fonts/X11/Type1 * /usr/share/fonts/X11/encodings ... * /usr/share/fonts/woff/opendyslexic * /usr/share/fonts/X11/encodings/large * /usr/share/fonts/truetype/roboto/unhinted * /usr/share/fonts/truetype/roboto/unhinted/RobotoTTF Nowhere in there do I see the directory I'm trying to add (/usr/local/share/tuxpaint/fonts/ or "locales/" under it). ;-( On Sat, Jun 10, 2023 at 06:26:13PM -0400, Mark Kim wrote: > Hi, > > Tux Paint Config on macOS is also unable to list fonts bundled with Tux > Paint. This happens, at least on macOS, because the bundled fonts are not > installed but stays bundled with Tux Paint, outside the purview of Tux > Paint Config. When/if we DO get this working in Tux Paint, I _think_ it should be reasonable to just do the same thing in Tux Paint Config., to let it find all the fonts Tux Paint ships with (wherever Tux Paint stores them, e.g, in my case `/usr/local/share/tuxpaint/fonts/`), rather than having to maintain a hard-coded list. But... I dunno. This stuff is maddeningly complicated. ;-( Help wanted!!! -bill! |