You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typst developers have been talking about refactoring the layout engine to make it more flexible and powerful. I have thrown the idea of looking into taffy either for inspiration or to use directly. One layout that is missing from taffy is the float layout (more relevant for paged media). Is this something you would care for supporting?
So I haven't thought too deeply about this, but I believe that float layout requires close integration with text layout (because, for example, the y-axis position a floated element that occurs midway through a sentence of text depends on how that text is wrapped, and thus which line that sentence occurs on). If that is the case, then I would inclined to consider float layout as out of scope of Taffy on the basis that anything involving text layout is considered out of scope.
That being said:
Taffy is designed to be easy to integrate as part of a wider layout engine implementing text layout (or any other kind of layout for that matter)
If there was another library that implemented float layout (perhaps cosmic-text) then Taffy could potentially pull that in as a dependency (behind a feature flag) to offer that feature too.
Out of interest, how does Typst currently do text layout (and indeed layout in general)?
You may also be interested in Servo's Layout 2020 engine which has recently been revived as a project and is intending to implement float layout (but doesn't yet implement flexbox or grid well)
Out of interest, how does Typst currently do text layout (and indeed layout in general)?
I have started looking into typst just last week so the answer for now is I am not sure. But I will be looking into the codebase soon and I can get back to you!
Typst developers have been talking about refactoring the layout engine to make it more flexible and powerful. I have thrown the idea of looking into taffy either for inspiration or to use directly. One layout that is missing from taffy is the float layout (more relevant for paged media). Is this something you would care for supporting?
@nicoburns
The text was updated successfully, but these errors were encountered: