-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Implement canvas measure strategy #3449
Copy link
Copy link
Closed
Labels
area/performancetype/bugSomething is misbehavingSomething is misbehavingtype/enhancementFeatures or improvements to existing featuresFeatures or improvements to existing features
Milestone
Description
I have seen some reports like this:
I had a debug session with someone and there were some interesting findings:
- It happened with monospace, Courier New, Consolas, Cascasia Code but not Arial (at least it wasn't obvious)
- Switching fontSize (forcing the char atlas to get refreshed) did not fix the issue
- Increasing the letter spacing mostly worked around the issue
Still not entirely sure why it's happening, but I believe handling this TODO will probably solve the issue and I can get it retested after we've done it:
| // TODO: For supporting browsers we should also provide a CanvasCharDimensionsProvider that uses ctx.measureText |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/performancetype/bugSomething is misbehavingSomething is misbehavingtype/enhancementFeatures or improvements to existing featuresFeatures or improvements to existing features
