Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

func SplitText returns a wrong result #87

Open
EvenBoom opened this issue Oct 3, 2024 · 1 comment
Open

func SplitText returns a wrong result #87

EvenBoom opened this issue Oct 3, 2024 · 1 comment

Comments

@EvenBoom
Copy link

EvenBoom commented Oct 3, 2024

pdf.SetFont("msyh", "", 12)
fmt.Println(pdf.SplitText("你好哈哈哈哈哈哈哈哈哈哈哈啊哈哈啊哈哈哈哈哈", 95))
output: 你好哈哈哈哈哈哈哈哈哈哈哈啊哈哈啊哈哈哈哈
result is missing a chinese word '哈' when i use msyh.ttf

@EvenBoom
Copy link
Author

EvenBoom commented Oct 3, 2024

i think the problem is func isChinese(c)
chinese words should not be the same as space words

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant