Skip to content

Commit

Permalink
Fix filter for thai-only fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Jun 21, 2024
1 parent 9f3ce94 commit 64f4191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fonts/fonts.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ func LoadFrom(fsys fs.FS) (int, error) {
f.Script = FontScriptCyrillic
case "greek":
f.Script = FontScriptGreek
case "thai":
f.Script = FontScriptThai
default:
f.Script = FontScriptAll.Filter(func(c rune) bool {
return ttf.Index(c) != 0
Expand Down

0 comments on commit 64f4191

Please sign in to comment.