Foone🏳️⚧️ on Nostr: yeah it does a thing where it measures the width of characters up until you've ...
yeah it does a thing where it measures the width of characters up until you've rendered 20,000 (or 500,000?) characters and then if so, it relies on a small hashmap of character->info that it estimates from instead of using the real measureText
Published at
2024-10-25 23:28:28Event JSON
{
"id": "06d88b99714a6e9a82ebe66eca72b0819047b58a9613db3d2af2fa187ad7b7a7",
"pubkey": "8d0c6793de7edd25b3e6fcfd2e4e9b301cec2c7e577a9dcf0247e64d7c3c737e",
"created_at": 1729898908,
"kind": 1,
"tags": [
[
"e",
"246b1a7ca74eea4318da67fd05e1ad23dc55d710b03594e814a2ea0e461829f5",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://digipres.club/users/foone/statuses/113370654890063610",
"activitypub"
]
],
"content": "yeah it does a thing where it measures the width of characters up until you've rendered 20,000 (or 500,000?) characters and then if so, it relies on a small hashmap of character-\u003einfo that it estimates from instead of using the real measureText",
"sig": "4cb01ff8b2b7bbebfc192c1e4d7424ea2a7ec91d62facaff7ea2d790defa8a5858632f8ecad176462d3cf2b5c7bef4cfbe6d27b3783984943d6d3bf0b4b19d34"
}