WICG / canvas-formatted-text

Other
82 stars 17 forks source link

[IDEA] Hook for Houdini layout worklet callback #40

Open travisleithead opened 2 years ago

travisleithead commented 2 years ago

As the format operation will trigger layout of the text, it will be symmetric with HTML, if calls to format can also trigger a layout worklet to run on the per-fragment level (synchronously, but off thread) during the API call, so that layout results have been modified on a per-line basis (as with HTML inline-level layout of the same) when the results are returned.