Closed michael8090 closed 7 months ago
https://github.com/WICG/canvas-formatted-text/blob/main/explainer-datamodel.md#formatted-text---input-data-model
It should be constraints.width - box.marginRightBottom - box.width instead of constraints.width - box.marginRightBottom + box.width when calculating the line constraint.
I've created a PR to fix it.
https://github.com/WICG/canvas-formatted-text/pull/52
Merged. Thanks a lot!
https://github.com/WICG/canvas-formatted-text/blob/main/explainer-datamodel.md#formatted-text---input-data-model
It should be constraints.width - box.marginRightBottom - box.width instead of constraints.width - box.marginRightBottom + box.width when calculating the line constraint.
I've created a PR to fix it.
https://github.com/WICG/canvas-formatted-text/pull/52