mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
add arabic, hebrew, chinese and others stuff.
This commit is contained in:
BIN
fonts/NotoSansArabic.ttf
Normal file
BIN
fonts/NotoSansArabic.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoSansBengali.ttf
Normal file
BIN
fonts/NotoSansBengali.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoSansHebrew.ttf
Normal file
BIN
fonts/NotoSansHebrew.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoSansKR.ttf
Normal file
BIN
fonts/NotoSansKR.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoSansTC.ttf
Normal file
BIN
fonts/NotoSansTC.ttf
Normal file
Binary file not shown.
BIN
fonts/NotoSansThai.ttf
Normal file
BIN
fonts/NotoSansThai.ttf
Normal file
Binary file not shown.
@@ -268,6 +268,36 @@ func getLanguage(text string) (*truetype.Font, bool, error) {
|
||||
"fonts/NotoSansJP.ttf",
|
||||
true,
|
||||
},
|
||||
{
|
||||
unicode.Han,
|
||||
"fonts/NotoSansTC.ttf",
|
||||
true,
|
||||
},
|
||||
{
|
||||
unicode.Hangul,
|
||||
"fonts/NotoSansKR.ttf",
|
||||
true,
|
||||
},
|
||||
{
|
||||
unicode.Arabic,
|
||||
"fonts/NotoSansArabic.ttf",
|
||||
false,
|
||||
},
|
||||
{
|
||||
unicode.Hebrew,
|
||||
"fonts/NotoSansHebrew.ttf",
|
||||
false,
|
||||
},
|
||||
{
|
||||
unicode.Bengali,
|
||||
"fonts/NotoSansBengali.ttf",
|
||||
false,
|
||||
},
|
||||
{
|
||||
unicode.Thai,
|
||||
"fonts/NotoSansThai.ttf",
|
||||
false,
|
||||
},
|
||||
} {
|
||||
for _, rune := range text {
|
||||
rune16 := uint16(rune)
|
||||
|
||||
Reference in New Issue
Block a user