-
Notifications
You must be signed in to change notification settings - Fork 41
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
Only latin characters? #18
Comments
@iliakan you can try this https://github.com/Evgenus/js-server-text-width if it is still relevant. |
I tried to add cyrillic adding this loop
just below the loop iterating for latin chars and I can have those chars included but even adding it when I try to use it to have the getWidth of a text, it seems the width are not correctly calculated, because the result to apply a font resized based on the full text width and the container dimension where the text might fit, it doesn't work as it does for latin chars. |
Looks like it doesn't work with non-latin characters, e.g. cyrillic.
Please make that very clear in Readme start, not in "How to contribute" section.
So that people don't waste their time.
The text was updated successfully, but these errors were encountered: