Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Sans, letter 'J' gets clipped #4266

Open
mykytabatrak opened this issue Feb 3, 2022 · 1 comment
Open

Open Sans, letter 'J' gets clipped #4266

mykytabatrak opened this issue Feb 3, 2022 · 1 comment
Labels
I API / Website / Platform fonts.google.com related stuff

Comments

@mykytabatrak
Copy link

Description
When using the font on the web, if overflow is set to hidden, some letters get clipped at the edge, the ones that I've noticed are italic 'y', 'p' 'A', 'J', 'j' 'x', and normal 'J' and 'j'

To Reproduce
You can see it on Google Fonts or if you use this font on the web page with the following styles on the element it's inside:

.font {
	font-family: "Open Sans";
	font-size: 3rem;
	margin: 0 0.25rem;
	overflow: hidden;
}

Codepen example

Expected behavior
Expected all letters to be fully visible inside their container.

Screenshots
Screenshot 2022-02-03 at 11 06 26

@RosaWagner RosaWagner added I API / Website / Platform fonts.google.com related stuff and removed I Font Bug labels Feb 16, 2022
@justingrant
Copy link

In addition to clipping, this behavior also causes misalignment between Open Sans and other fonts when used together. For example, here's a screen capture from Chrome Dev Tools from a page of my company's web app. The top heading is Open Sans, the bottom text is Inter. Our app's target audience is design professionals (architects) so this kind of thing is bad!

image

The edge of the Open Sans J is 2x outside of the border of the containing <div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I API / Website / Platform fonts.google.com related stuff
Projects
None yet
Development

No branches or pull requests

3 participants