Looks like SDL2_Pango can find our fonts now

Made sure to add our font dir (e.g., /usr/local/share/tuxpaint/fonts/)
to FontConfig's directories before trying to load uifont!

Also, update font names to match what we ship with Tux Paint.
WIP -- Would like to supply some alternatives.
This commit is contained in:
Bill Kendrick 2023-06-12 23:51:07 -07:00
parent 794ea691e8
commit 0bfc8c18c1
3 changed files with 52 additions and 84 deletions

View file

@ -70,22 +70,14 @@ https://tuxpaint.org/
Closes https://sourceforge.net/p/tuxpaint/feature-requests/146/
Bill Kendrick <bill@newbreedsoftware.com>
* WIP Different default fonts may be set on a per-locale basis
(hard-coded into Tux Paint). Most locales still use "DejaVu Sans",
if available. As of 0.9.31, things are configured as:
+ Arabic: Nice
+ Gujarati: Lohit Gujarati
+ Hebrew: Nachlieli CLM
+ Hindi: Lohit Devanagari
+ Japanese: TBD <<FIXME>>
+ Korean: Baekmuk Gulim
+ Thai: Garuda
+ Tibetan: Tsampa Keyboard
* Different default fonts once again used on a per-locale basis.
(This returns us to how Tux Paint behaved when we used
SDL_ttf to directly load fonts for the UI, and used TTF font files
that we ship in the `fonts/locale/` directory.)
that we ship in the `fonts/locale/` directory. We now ask Pango,
via FontConfig, to look there for fonts.)
Closes https://sourceforge.net/p/tuxpaint/feature-requests/240/
Bill Kendrick <bill@newbreedsoftware.com> (code)
h/t Mark Kim & TOYAMA Shin-ichi
* Bug Fixes:
----------