13 ms·
Pretext's most interesting use cases have no DOM at all
- lewisjoe 7mo agoThis 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.
- cyrusradfar 7mo agoOP 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.
- lewisjoe 7mo agoGot it! :)
- cyrusradfar 7mo agoUpdate: A port to Swift has been released April 1 by Tornike Gomareli (https://x.com/tornikegomareli 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-pretextkit
- pjmlp 7mo agoBasically, yet another group of folks rediscovered native text layout engines. Back and forth the pendulum goes.