Skip to content

Commit

Permalink
chore: added additional fonts and mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Jul 16, 2024
1 parent 78ac1b3 commit 3822611
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 0 deletions.
Binary file added public/fonts/NotoSansBengali-Bold.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansBengali-Regular.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansKhmer-Bold.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansKhmer-Regular.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansOriya-Bold.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansOriya-Regular.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansSinhala-Bold.ttf
Binary file not shown.
Binary file added public/fonts/NotoSansSinhala-Regular.ttf
Binary file not shown.
47 changes: 47 additions & 0 deletions src/modules/notoFontForLocale/customNotoFontLookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,51 @@ export const customNotoFontLookup = new Map([
languages: new Set(['my', 'kht', 'mnw', 'shn']),
},
],
[
'NotoSansBengali',
{
scripts: new Set(['Beng']),
languages: new Set([
'as',
'bn',
'bpy',
// 'ccp', (Beng + Cakm)
'grt',
'kha',
// 'mni', (Beng, Mtei)
'lus',
// 'unx' (Beng + Deva),
// 'unr' (Beng + Deva),
'rkt',
// 'sat' (Beng + Deva + Orya + Olck)
// 'syl' (Beng + Sylo)
]),
},
],
[
'NotoSansKhmer',
{ scripts: new Set(['Khmr']), languages: new Set(['km']) },
],
[
'NotoSansOriya',
{
scripts: new Set(['Orya']),
languages: new Set([
// 'kxv', (Orya + Deva + Telu)
'or',
// 'sat' (Orya + Beng + Deva + Olck)
]),
},
],
[
'NotoSansSinhala',
{
scripts: new Set(['Sinh']),
languages: new Set([
'si',
// 'pi', (Sihn + Deva + Thai)
// 'sa', (Sihn + Deva + Gran + Shrd + Sidd)
]),
},
],
])

0 comments on commit 3822611

Please sign in to comment.