Pretext's most interesting use cases have no DOM at all
cyrusradfar.comThis is not an accurate take. Especially the SSR one. Pretext doesn't liberate text layout from the browser entirely (at least not yet). It still uses canvas.measureText that does critical heavy lifting like font fallbacks, default styles, etc.
Once you take pretext out of browser environment, you'll have to worry about lot more things around fonts.
OP here, you're right. I discuss that as a next step at the end. The process to get to this point is the insight to how to accomplish this cross platforms.
Update:
A port to Swift has been released April 1 by Tornike Gomareli (https://x.com/tornikegomareli) the community so now it's able to be used in Mac Native apps
- tweet: https://x.com/tornikegomareli/status/2039516374788124865 - repo: https://github.com/tornikegomareli/swift-pretextkitGot it! :)
Basically, yet another group of folks rediscovered native text layout engines.
Back and forth the pendulum goes.