Hi,
I'm using an @font-face declaration like this:
As you can see, I'm importing a font file with a Medium weight and using it as the Bold font. That's intended – there is some markup in my document that I don't have control over and that markup uses font-weight: bold. But since the Fira Sans Bold font is very bold, I'd like Prince to use the Medium weight there. So what I'm saying is basically "use this Medium font file whenever the CSS says that it wants a bold font".
That works perfectly fine in browsers, but unfortunately not in Prince (12.3 on macOS 10.11).
It makes the text render twice with a slight overlap for some reason.
If I import and use the font with font-weight: 500, it works perfectly, even though it's the same font file and otherwise the same CSS.
I have attached the two test cases and the font file to make it easier for you to reproduce the issue.
If a fix is not possible in the near-term (the document needs to be done mid-January), it would help me a lot to have a workaround for this. Is there maybe another way to tell Prince to use a custom weight for "bold"?
Thanks,
Lukas
I'm using an @font-face declaration like this:
@font-face {
font-family: FiraSans;
src: url('firasans-medium.otf') format('opentype');
font-weight: bold;
font-style: normal;
}
As you can see, I'm importing a font file with a Medium weight and using it as the Bold font. That's intended – there is some markup in my document that I don't have control over and that markup uses font-weight: bold. But since the Fira Sans Bold font is very bold, I'd like Prince to use the Medium weight there. So what I'm saying is basically "use this Medium font file whenever the CSS says that it wants a bold font".
That works perfectly fine in browsers, but unfortunately not in Prince (12.3 on macOS 10.11).
It makes the text render twice with a slight overlap for some reason.
If I import and use the font with font-weight: 500, it works perfectly, even though it's the same font file and otherwise the same CSS.
I have attached the two test cases and the font file to make it easier for you to reproduce the issue.
If a fix is not possible in the near-term (the document needs to be done mid-January), it would help me a lot to have a workaround for this. Is there maybe another way to tell Prince to use a custom weight for "bold"?
Thanks,
Lukas