-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
Can't use font-family. #231
Comments
WeasyPrint basically just gives the |
@SimonSapin I installed libpango1.0-dev (this package includes |
Try some variation of Also note that while In your case for example, I don’t know if "Pitch" is part of the family name or not. |
Also, the value of |
First of all thanks @SimonSapin for your time and your help. I tried different variation (name, spaces, escaped, with and without style... ) as suggested but nothing worked for me. I installed another OCR-B font, (not the "Pitch 10 BT" that I have to use.. ) and the That made me suspicious. I tried the following with the Python Image Library.
And I got this output It seems that the font is broken - .. or only broken on Linux/Debian?! It works great on my Mac 😮 Anyways. I got another font in .odf format.
And In WeasyPrint, using
I just got the "broken" boxed again. The fonts are Any further ideas? |
It’s possible that the font is broken or in a format not supported by your particular version of freetype or fontconfig, and Pango ends up falling back on another one even though it could find the font. But I’m only speculating here. Note that the Also, PIL seems to bypass fontconfig entirely, since it accepts a filename directly. I’m afraid I can’t help anymore than that. I don’t believe there’s any change I can make in WeasyPrint that would help with this, and I don’t know more about how fonts are selected and rendered than described so far. |
@SimonSapin, Thanks again for your help. |
"Regular" is probably not part of the font family name, but probably identifies a font face within the family. (Others could be Bold and Italic.) So in CSS it would probably map to |
We bought today the OCR-B1 font from ocrb1. This font works great and can be addressed in CSS using the following
This is the correct setup for generating Orange inpayment slip (ISR) for the PostFinance of Switzerland. |
Hi all
I'm using Debian, WeasyPrint 0.22 and I try to use an OCR font by setting the
font-family
option as described here.The OCR font is installed (same font in two directories) on the system.
I tried
Nothing worked. Could anyone help me with this issue or has a working example?
BTW: The font in the Font Book on a Mac

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