Skip to content

Google Sans Misalignment (Latin/Cyrillic) #10394

@project-material

Description

@project-material

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.

Screenshots
Image

Additional context
Android 14 (AOSP)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions