Skip to content

Commit d4e2645

Browse files
sago35deadprogram
authored andcommitted
Do not convert jisx0201.1976
1 parent 7dbf41f commit d4e2645

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/tinyfontgen/gen.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ func (f *fontgen) generate(w io.Writer, runes []rune, opt ...option) error {
9797

9898
code2rune := func(c int) (rune, error) { return rune(c), nil }
9999
charset := strings.ToLower(font.CharsetRegistry)
100-
if strings.HasPrefix(charset, "jisx") {
100+
if charset == "jisx0201.1976" {
101+
} else if strings.HasPrefix(charset, "jisx") {
101102
code2rune = jisx0208.Rune
102103
}
103104

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy