mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 11:44:34 +01:00
use simplified chinese because and check for that before japanese.
fixes https://github.com/fiatjaf/njump/issues/17
This commit is contained in:
BIN
fonts/NotoSansSC.ttf
Normal file
BIN
fonts/NotoSansSC.ttf
Normal file
Binary file not shown.
Binary file not shown.
@@ -260,6 +260,11 @@ func getLanguage(text string) (*truetype.Font, bool, error) {
|
||||
fontName string
|
||||
breakWords bool
|
||||
}{
|
||||
{
|
||||
unicode.Han,
|
||||
"fonts/NotoSansSC.ttf",
|
||||
true,
|
||||
},
|
||||
{
|
||||
unicode.Katakana,
|
||||
"fonts/NotoSansJP.ttf",
|
||||
@@ -270,11 +275,6 @@ func getLanguage(text string) (*truetype.Font, bool, error) {
|
||||
"fonts/NotoSansJP.ttf",
|
||||
true,
|
||||
},
|
||||
{
|
||||
unicode.Han,
|
||||
"fonts/NotoSansTC.ttf",
|
||||
true,
|
||||
},
|
||||
{
|
||||
unicode.Hangul,
|
||||
"fonts/NotoSansKR.ttf",
|
||||
|
||||
Reference in New Issue
Block a user