mos_8502 :verified: on Nostr: The biggest and hairiest of the bugbears I want to take on with GNUstep and Agora is ...
The biggest and hairiest of the bugbears I want to take on with GNUstep and Agora is UI scaling.
Everyone does it wrong. There is only one right way to do scaling: define all views in terms of physical measurements, and render to however many pixels on the target screen match that closest. That is, if a screen has 120 pixels to one inch, then a one-half-inch wide button is 60 pixels.
Add more pixel density, and things get sharper, not smaller.
Published at
2024-08-13 01:12:33Event JSON
{
"id": "65f3345b2e5a55972196e5e80366b2ce5b11c469918e419bed7eeb3b9655c5c9",
"pubkey": "04f8915424c713657ad6ce59443d28dbdcf5832687c9af560ae388f59276a137",
"created_at": 1723511553,
"kind": 1,
"tags": [
[
"proxy",
"https://studio8502.ca/@mos_8502/112952053152320179",
"web"
],
[
"proxy",
"https://studio8502.ca/users/mos_8502/statuses/112952053152320179",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://studio8502.ca/users/mos_8502/statuses/112952053152320179",
"pink.momostr"
],
[
"-"
]
],
"content": "The biggest and hairiest of the bugbears I want to take on with GNUstep and Agora is UI scaling. \n\nEveryone does it wrong. There is only one right way to do scaling: define all views in terms of physical measurements, and render to however many pixels on the target screen match that closest. That is, if a screen has 120 pixels to one inch, then a one-half-inch wide button is 60 pixels.\n\nAdd more pixel density, and things get sharper, not smaller.",
"sig": "736a0c578a550e86eb3a6d7bf2053151314a0118d55c9aee488225f1341c197025e6da735425f7f1f8375229a199df79d2c67c7758254ba40291ebaddb956f9c"
}