google / fonts

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

Oswald doesn't render font weight correctly when printing a webpage #2734

Open Nazrinn opened 4 years ago

Nazrinn commented 4 years ago

Hi! I am currently using Oswald on a website meant to be printed (it's my resume). However, I have noticed Oswald doesn't render the font weight it was assigned to in CSS no matter what. This is a problem I have found on the Google Fonts website as well, as demonstrated here.

Web page view: image

When trying to print the page: image

Because of this, I am thinking this might be a problem related to the font itself.

Has anybody any idea of why that is and on how to fix it? This seem to be an issue only with Oswald.

Thanks!

RosaWagner commented 4 years ago

Hi, thanks for reporting this.

I can’t replicate the bug on my machine (Mac OS 10.14.6) whatever the browser I use.

Can you give more details about:

Nazrinn commented 4 years ago

Browser: Google Chrome - version 85.0.4183.121

OS: Windows 10 - version 1909 - Build 18363.1082

The screenshot is from the printing preview only. This is a problem I have spotted both in Chrome and Edge. In Firefox and Opera, I do not have this problem.

Unfortunately my printer is not cooperating at the moment, but if I save the document in PDF, I still get the weirdly bold font. See here: Oswald-GoogleFonts(Chrome).pdf Oswald-GoogleFonts(Firefox).pdf

I'd like to also add that if I use the font locally in ttf, I do not seem to have that problem.

Nazrinn commented 4 years ago

Update: the printer cooperated. It does seem to print out the weirdly bold font as well (printed from Chrome).

20201009_050136

RosaWagner commented 4 years ago

Thanks. Can you try with another variable font, a recent one, like Piazzolla ?

thlinard commented 4 years ago

On macOS 10.15.7, I can't reproduce the problem:

Nazrinn commented 4 years ago

Looks like that's it. It doesn't render correctly either.

Piazzolla-GoogleFonts(Chrome).pdf

Same in Edge. Perhaps this is a Chromium problem?

thlinard commented 4 years ago

Same result using Skia/PDF m86, Chrome internal PDF engine: https://github.com/google/fonts/files/5354036/Oswald.-.Google.Fonts.-.Chrome.86.0.4240.75.Skia.m86.pdf

RosaWagner commented 4 years ago

Merci Thomas. No problem on my side on Mojav, same Chrome, skia/PDF 86m. Oswald - Google Fonts.pdf

thlinard commented 4 years ago

Edit: OK, my mistake. Chrome 86 = Skia/PF m86.

RosaWagner commented 4 years ago

@Nazrinn, if your main goal is to be able to print from the browser, probably safer for now to use self-hosted static TTF. If you wanted a custom instance you can export it with axis-praxis/samsa, or using fonttools.

@thlinard, no issues with Opera using Skia/PDF m85

Nazrinn commented 4 years ago

Ah. And I thought I could have it easy by just exporting Google Fonts. I haven't heard of the two other tools. I think I'll stick to local fonts for now for the sake of compatibility since I assume a fix won't come out globally any time soon. Thanks for the tips tough @RosaWagner!

thlinard commented 4 years ago

@RosaWagner: you're right, I corrected my comments. Definitively a Windows problem, not a Mac one.