mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-15 14:25:32 +01:00
[UI/UX] Added fonts for Devanagari and Thai writing systems (#6798)
Added fonts for Devanagari and Thai writing systems Co-authored-by: damocleas <damocleas25@gmail.com>
This commit is contained in:
parent
cce1653b70
commit
004cb34a46
@ -24,6 +24,8 @@ const unicodeRanges = {
|
|||||||
kana: "U+3040-30FF",
|
kana: "U+3040-30FF",
|
||||||
CJKCommon: "U+2E80-2EFF,U+3000-303F,U+31C0-31EF,U+3200-32FF,U+3400-4DBF,U+F900-FAFF,U+FE30-FE4F",
|
CJKCommon: "U+2E80-2EFF,U+3000-303F,U+31C0-31EF,U+3200-32FF,U+3400-4DBF,U+F900-FAFF,U+FE30-FE4F",
|
||||||
CJKIdeograph: "U+4E00-9FFF",
|
CJKIdeograph: "U+4E00-9FFF",
|
||||||
|
devanagari: "U+0900-097F",
|
||||||
|
thai: "U+0E00-0E7F",
|
||||||
specialCharacters: "U+266A,U+2605,U+2665,U+2663", //♪.★,♥,♣
|
specialCharacters: "U+266A,U+2605,U+2665,U+2663", //♪.★,♥,♣
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -88,6 +90,28 @@ const fonts: LoadingFontFaceProperty[] = [
|
|||||||
}),
|
}),
|
||||||
only: ["en", "es", "fr", "it", "de", "pt", "ko", "ja", "ca", "da", "tr", "ro", "ru", "tl"],
|
only: ["en", "es", "fr", "it", "de", "pt", "ko", "ja", "ca", "da", "tr", "ro", "ru", "tl"],
|
||||||
},
|
},
|
||||||
|
// devanagari
|
||||||
|
{
|
||||||
|
face: new FontFace("emerald", "url(./fonts/8-bit-devanagari.ttf)", {
|
||||||
|
unicodeRange: unicodeRanges.devanagari,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
face: new FontFace("pkmnems", "url(./fonts/8-bit-devanagari.ttf)", {
|
||||||
|
unicodeRange: unicodeRanges.devanagari,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
// thai
|
||||||
|
{
|
||||||
|
face: new FontFace("emerald", "url(./fonts/fsrebellion.otf)", {
|
||||||
|
unicodeRange: unicodeRanges.thai,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
face: new FontFace("pkmnems", "url(./fonts/terrible-thaifix.ttf)", {
|
||||||
|
unicodeRange: unicodeRanges.thai,
|
||||||
|
}),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
//#region Functions
|
//#region Functions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user