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

Some words are not loaded, but components work fine if loaded separately #299

Open
umanggoyal89 opened this issue Mar 15, 2023 · 2 comments

Comments

@umanggoyal89
Copy link

Does anyone having problems in loading words like "便宜", when we try loading this using the CDN script, it throws error "Failed to load char data for". If I try loading "便" or "宜" separately then it works fine. But when we combine it and try to load then it doesn't work.
Another problem we are facing is related to the strokes of the characters in some cases, some works fine in one browser but not in Safari and some works with safari but not with other browsers.
Desktop Browser:
image

Mobile browser:
image

Another character having strokes problem on browser:
image

I really appreciate your support and help here.

@chanind
Copy link
Owner

chanind commented Mar 15, 2023

You can only load 1 character at a time in a single writer, so you can't load "便宜" in one go, for instance. You would need to have either 2 writer instances, and load "便" in one and "宜" in the other, or load them one at a time in the same writer instance.

The mobile browser stuff looks pretty bad - maybe the browser isn't supporting SVG fully? You can try switching the renderer to canvas and see if that helps. It doesn't handle overlapping strokes as nicely as the default SVG renderer, but it might work better in browsers that don't support SVG as well. You can do that by passing renderer: "canvas" when creating the writer

@umanggoyal89
Copy link
Author

Thank you @chanind for your quick response. We were able to resolve the rendering strokes issue on browsers.
For the other point, "𠂇" we are not able to get this character loaded as well, I checked in the data sets of Henzi writer and this character is not in there.

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

No branches or pull requests

2 participants