Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fallback to canvas measurement when font glyph not available
If characters are inserted for which the configured 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 determine the width the browser will use when rendering the character. Fixes #11.
- Loading branch information