-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Google Sans Misalignment (Latin/Cyrillic) #10394
Description
GoogleSans-VariableFont_GRAD,opsz,wght.ttf
Describe the bug
The Google Fonts version includes extra vertical padding, which increases the overall height of the TextView compared to the version used in the Google Pixel firmware.
For example, when using 14sp text with the default line height and the same font variation settings ('wght' 500, 'GRAD' 0, 'opsz' 17.0):
• Google Pixel version: The TextView height is 21dp.
• Google Fonts version: The TextView height increases to 32dp, which includes extra padding.
This discrepancy in vertical padding leads to layout inconsistencies, especially in designs where precise alignment and spacing are crucial. When using the Google Fonts version of Google Sans, developers may need to adjust padding or line height to match the expected appearance on devices running the Google Pixel firmware.
To Reproduce
Apply the Google Sans font from the Google Fonts website.
Expected behavior
To match the original Google Sans font from Google Devices.
Additional context
Android 14 (AOSP)
