Scott Kellum :typetura: on Nostr: If you’re setting optical sizes in :safari: Safari, be sure to stay within the ...
If you’re setting optical sizes in
Safari, be sure to stay within the boundaries of what your font supports or else it will revert back to a value of 12!
If you’re setting this value dynamically, you can manage this with clamp like so: `font-variation-settings: 'opsz' clamp(9, var(--value), 48)`
Published at
2023-06-23 19:22:34Event JSON
{
"id": "cc63366d0ff40813a09635ef67b5c0812706eb708f4e4c81e8b389f21f8e9027",
"pubkey": "dc0f0c31dd2455baae3d997a0af92d882f90afee93ef4dd08893b93a84a41dc8",
"created_at": 1687548154,
"kind": 1,
"tags": [
[
"emoji",
"safari",
"https://typetura.files.fedi.monster/custom_emojis/images/000/005/073/original/4c5fb9bde23774fc.png"
],
[
"mostr",
"https://typetura.social/users/scott/statuses/110595155829455079"
]
],
"content": "If you’re setting optical sizes in :safari: Safari, be sure to stay within the boundaries of what your font supports or else it will revert back to a value of 12!\n\nIf you’re setting this value dynamically, you can manage this with clamp like so: `font-variation-settings: 'opsz' clamp(9, var(--value), 48)`",
"sig": "ae84a0c778ec969b1cae0cd9bc84e5b9a30019a79c32e6a43c9923c0c2a786fa3a368f2f42c75dbcc60649d20ce5a20cb9b49f78719e94ac431fdac25e84bb86"
}