-
-
Notifications
You must be signed in to change notification settings - Fork 712
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
Failed rendering of "Inconsolata" font #2266
Comments
Hi! Thanks for this report. I get the correct rendering on my computer. Here’s what I’ve tried: <p>This is a test.</p>
<p style="font-stretch: ultra-condensed">This is a test (narrow).</p>
<p style="font-stretch: ultra-expanded">This is a test (wide).</p> I suspect that for some reason the default font stretch is a really narrow one for you. If you don’t want condensed variants, you can try this URL as a workaround:
Could you please try my HTML with the original URL, and your HTML sample with this URL? Do you have Insconsolata installed on your computer? |
I was afraid that it was a problem caused by #1073 with a variable font installed, but if it works with the simpler URL, it’s unrelated. I suspect that there’s something wrong in the way fontconfig selects the correct font on your computer. Maybe a bug that’s been fixed in my version. Let’s close the issue for now, as the workaround is easy for you and the bug is probably not in WeasyPrint. If anyone gets this problem again, feel free to add a comment. |
The Inconsolata font is a nice Google-hosted monospaced typeface that works fine in web browsers. Rendering Inconsolata text with WeasyPrint fails in a funny way.
Source:
Command line:
Result:

In-browser HTML rendering:

Comparison with the default "monospace":

Versions:
The text was updated successfully, but these errors were encountered: