google / fonts

Font files available from Google Fonts, and a public issue tracker for all things Google Fonts
https://fonts.google.com
18.26k stars 2.62k forks source link

Inter - '•' issue: baseline shift when placed next to alphanumeric character #3778

Open madisonbullard opened 3 years ago

madisonbullard commented 3 years ago

When a series of characters are placed next to some alphanumeric characters, the 5 characters preceding the alphanumeric characters appear slightly higher than the other characters.

image

Reproduction: https://fonts.google.com/specimen/Inter?preview.text=%20%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A2%E2%80%A24242&preview.text_type=custom

kenmcd commented 3 years ago

This is by design. The • and other characters are raised when between figures and uppercase. See Contextual Alternates here: https://rsms.me/inter/#features/calt And Case Alternates here: https://rsms.me/inter/#features/case

It does not show the bullet in the example for Contextual Alternates, but it is there in the fonts. Contextual Alternates are On by default, so that will affect whatever you enter. Since they are On by default they must be manually disabled by the user if not wanted.

Case Alternates are Off by default and must be enabled by the user manually.

cebreus commented 2 years ago

As @kenmcd write, Contextual Alternates are the core of the behaviour.

But the internal calculation of the Contextual Alternates is bad. Example for the credit card placeholder ••••••••••••4072.