Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #38, the text was not displayed when the text contained space #39

Closed
wants to merge 1 commit into from

Conversation

akanchi
Copy link

@akanchi akanchi commented Jan 18, 2022

当文本中包含空格时,CTFontCreatePathForGlyph会返回NULL,致使CGTypeface::getGlyphPath 返回false
原逻辑是字符串中某个字符getGlyphPath失败就会导致TextBlob::getPath返回false,改为只要有字符getGlyphPath成功TextBlob::getPath都返回true

@lvpengwei
Copy link
Collaborator

感谢给我们发 PR ~

这个问题我们修改了 Cocoa 端文字生成 path 的地方,空格文本应该返回空 path 和 true 而不是 false。

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

Successfully merging this pull request may close these issues.

2 participants