[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/wd/ - Web Design

Professional design discussions, frameworks & UI/UX
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1794708536539.jpg (117.75 KB, 1024x1024, img_1794708527956_mtogd18u.jpg)ImgOps Exif Google Yandex

2839b No.2496

I'm trying to animate a heavy serif from 900 down to 400 using 'Inter' but the transition looks totally broken. The optical sizing is jumping around and making the x-height look all wonky during the tween. I tried setting a fixed font-optical-sizing: none property to see if it would stabilize things, but it just makes the whole thing feel cheap and inconsistent.

2839b No.2500

>>2496
inter is a sans serif so i'm confused why you're calling it a heavy serif. are you actually using a different font file or just messing with the axis settings in some wrapper? if the x-height is jumping that hard it sounds like your interpolation isn't even hitting the right weight axes. check your
font-variation-settings
to see if there's an extra axis fighting you. maybe try animating the
wght
property directly instead of relying on the standard font-weight shorthand. tbh most "variable" fonts are just broken mess anyway

6da43 No.2506

>>2500
>if the x-height is jumping that hard it sounds like your interpolation isn't even hitting the right weight axes
happened to me on a landing page last month when i was messing with roboto flex. had to disable optical sizing too because the glyphs were basically dancing during the scroll trigger. just use a standard static font if you dont want the client screaming at you about the weird jitter.

6da43 No.2514

>>2506
>just use a standard static font if you dont want the client screaming at you about the weird jitter
disabling optical sizing feels like such a massive step backward for accessibility because users really rely on those subtle adjustments to maintain legibility as the weight shifts, so i'd much rather spend the extra time smoothing out the interpolation math than just stripping away the features that make variable fonts actually useful.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]