More locale font defaults
Based on what we have as plain TTF files in the repo, and what's available in Ubuntu.
This commit is contained in:
parent
3c8f25e6e9
commit
1d212475b9
2 changed files with 31 additions and 0 deletions
|
|
@ -73,7 +73,13 @@ https://tuxpaint.org/
|
||||||
* WIP Different default fonts may be set on a per-locale basis
|
* WIP Different default fonts may be set on a per-locale basis
|
||||||
(hard-coded into Tux Paint). Most locales still use "DejaVu Sans",
|
(hard-coded into Tux Paint). Most locales still use "DejaVu Sans",
|
||||||
if available. As of 0.9.31, things are configured as:
|
if available. As of 0.9.31, things are configured as:
|
||||||
|
+ Arabic: Nice
|
||||||
|
+ Gujarati: Lohit Gujarati
|
||||||
|
+ Hebrew: Nachlieli CLM
|
||||||
|
+ Hindi: Lohit Devanagari
|
||||||
+ Japanese: TBD
|
+ Japanese: TBD
|
||||||
|
+ Thai: Garuda
|
||||||
|
+ Tibetan: Tsampa Keyboard
|
||||||
Closes https://sourceforge.net/p/tuxpaint/feature-requests/240/
|
Closes https://sourceforge.net/p/tuxpaint/feature-requests/240/
|
||||||
Bill Kendrick <bill@newbreedsoftware.com> (code)
|
Bill Kendrick <bill@newbreedsoftware.com> (code)
|
||||||
|
|
||||||
|
|
|
||||||
25
src/fonts.c
25
src/fonts.c
|
|
@ -176,11 +176,36 @@ static void reliable_read(int fd, void *buf, size_t count);
|
||||||
const char * PANGO_DEFAULT_FONT = "DejaVu Sans";
|
const char * PANGO_DEFAULT_FONT = "DejaVu Sans";
|
||||||
|
|
||||||
default_locale_font_t default_local_fonts[] = {
|
default_locale_font_t default_local_fonts[] = {
|
||||||
|
// Initially based on "otfinfo --info fonts/locale/*.ttf | grep "Full name:"
|
||||||
{
|
{
|
||||||
LANG_JA,
|
LANG_JA,
|
||||||
"TakaoPGothic" /* Included in Ubuntu "fonts-takao-gothic" package */
|
"TakaoPGothic" /* Included in Ubuntu "fonts-takao-gothic" package */
|
||||||
// FIXME: Shin-ichi recommend something, please! -bjk 2023.06.08
|
// FIXME: Shin-ichi recommend something, please! -bjk 2023.06.08
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
LANG_BO, // NOTE: Our current translation is Wylie transliterated, not Unicode! */
|
||||||
|
"Tsampa Keyboard" /* FIXME: Not packaged in Ubuntu! */
|
||||||
|
},
|
||||||
|
{
|
||||||
|
LANG_GU,
|
||||||
|
"Lohit Gujarati" /* Included in Ubuntu "fonts-lohit-gujr" package */
|
||||||
|
},
|
||||||
|
{
|
||||||
|
LANG_TH,
|
||||||
|
"Garuda" /* Included in Ubuntu "fonts-tlwg-garuda-ttf" package */
|
||||||
|
},
|
||||||
|
{
|
||||||
|
LANG_AR,
|
||||||
|
"Nice" /* Included in Ubuntu "fonts-arabeyes" package (ae_Nice) */
|
||||||
|
},
|
||||||
|
{
|
||||||
|
LANG_HE,
|
||||||
|
"Nachlieli CLM" /* Inclued in Ubuntu "culmus" package */
|
||||||
|
},
|
||||||
|
{
|
||||||
|
LANG_HI,
|
||||||
|
"Lohit Devanagari" /* Included in Ubuntu "fonts-lohit-deva" package */
|
||||||
|
},
|
||||||
{-1, NULL},
|
{-1, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue