WICG / canvas-formatted-text

Other
80 stars 17 forks source link

What are the necessary parameters to `.format()`; is `inlineSize` enough? #18

Closed travisleithead closed 2 years ago

travisleithead commented 2 years ago

From CG meeting on 8/18

travisleithead commented 2 years ago

This should be clarified and largely resolved by PR https://github.com/WICG/canvas-formatted-text/pull/39

travisleithead commented 2 years ago

To circle back: .format will take both a width and a height values in the form of box constraints. Thus, depending on what writing mode is expressed, the flowing of text in the box might work against the width (horizontal-based modes) OR the height (vertical-based modes). Conclusion: both directions are needed--but both are not required/mandatory.