-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
getSFNTMetadata bug #264
Comments
Thanks for raising this issue. Could you be more explicit? I believe the current implementation only looks for English names, and perhaps you're looking for a name in another language (Chinese)? This is more work to implement than it looks like, but I'll verify what would be required to do that. Regarding the "matching method is not sound". Why? What problem are you having apart from the above? |
What I want to express is that a font contains multiple names, and they should all support matching these names I have made the following attempts,but it runs slowly, try to write a simple font.ParseFont api for metadata ?
|
try to cache system fonts, run faster
|
It gets cached in https://github.com/tdewolff/canvas/blob/master/font.go#L192, but perhaps that should move to the |
There is a bug in getSFNTMetadata
the font loading on Windows is incomplete
only the first name is used, and the matching method is not sound
msya.ttf names like:
The text was updated successfully, but these errors were encountered: