Re: [community-group] Typography type feedback (#102)

> I would like to suggest the creation of a new type with a name like `fontDimension` which supports px, em and rem and gets used by `lineHeight` and `letterSpacing`

I would like to jump on this suggestion, as i agree with the need for a separate `fontDimension` type, as opposed to just `dimension`. My point of view is from Compose Android, where font sizes are a different type than normal dimensions.
In Android, you define font sizes using `sp`, whilst regular dimensions are defined using `dp`.
* `sp` stands for Scale Independent Pixels
* `dp` stands for Density Independent Pixels

On Android, a user can configure both the system wide screen zoom scaling level and the system wide font size scaling level, from the phone settings.

The system wide zoom scaling level affects both dp and sp, when they're transformed to actual pixel sizes

The  system wide font size scaling affects only sp, when they're transformed to actual pixel sizes

-- 
GitHub Notification of comment by HylkeB
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/102#issuecomment-2363213275 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 20 September 2024 08:55:36 UTC