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

When inserting characters with no font glyph match cursor positioning incorrect #11

Closed
rocketraman opened this issue Aug 24, 2015 · 0 comments
Assignees
Labels

Comments

@rocketraman
Copy link
Contributor

If characters are inserted for which the Opentype font has no glyph, the code assigns a default width of 0 to the character. This causes the line wrapping and cursor positioning logic to be incorrect.

Instead of assigning a default width of 0, fallback to a canvas-based measurement to see the width the browser will use when rendering the character.

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

No branches or pull requests

1 participant