Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
simonw
23 days ago
|
parent
|
context
|
favorite
| on:
Pretext: TypeScript library for multiline text mea...
Yes the browser still renders the text at the end - but you can now do fancy calculations in advance to decide where you're going to ask the browser to draw it.
tadfisher
23 days ago
[–]
I suspect exposing the browser's text layout measurer is going to become a Web API in the future, much like exposing the HTML parser via setHTML().
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: