-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error: Multiple @font-face with the same font-family/font-style/font-weight #77
Comments
Hmm, can you share the full set of |
Just one @font-face {
font-family: "cera_pro_black";
src: url("/fonts/cerapro-black-webfont.woff2") format("woff2"),
url("/fonts/cerapro-black-webfont.woff") format("woff");
font-weight: normal;
font-style: normal;
} |
Also, probably unrelated, two Google Fonts <link
href="https://fonts.googleapis.com/css?family=Lato|Merriweather&display=swap"
crossorigin="anonymous"
rel="stylesheet"
/> |
I tried putting that into a simple webpage, but I can't seem to reproduce it, except if I duplicate the Which command line switches are you using? Are you running Could I get you to try to make a small test case that reproduces it? You're also welcome to send me a copy of |
I'm using Sapper + Svelte, and it exports the page into a static site. |
Thanks! I tried building your project and ran <link href=client/main.4118517638.css rel=stylesheet>
<link href=client/client.f63cc1a2.css rel=stylesheet> But it makes sense, because @font-face {
font-family: "cera_pro_black";
src: url("/fonts/cerapro-black-webfont.woff2") format("woff2"),
url("/fonts/cerapro-black-webfont.woff") format("woff");
font-weight: normal;
font-style: normal;
} ... and @font-face {
font-family: "cera_pro_black";
src: url("/fonts/cerapro-black-webfont.woff2") format("woff2"),
url("/fonts/cerapro-black-webfont.woff") format("woff");
font-weight: normal;
font-style: normal;
} So it seems to be more of a known limitation than a bug that it happens. Could you find a way to avoid having two We should probably also make |
@papandreou I think this is a problem with Sapper: The |
I have created an issue for this behavior. |
This issue has been fixed in Sapper 0.27.10 |
Latest update triggers an error never seen before:
Error: Multiple @font-face with the same font-family/font-style/font-weight (maybe with different unicode-range?) is not supported yet: cera_pro_black/normal/normal at subsetFonts (/home/sokil/Desktop/Projects/European-Market-Web-App/node_modules/.pnpm/registry.npmjs.org/subfont/4.1.2/node_modules/subfont/lib/subsetFonts.js:685:19) at async subfont (/home/sokil/Desktop/Projects/European-Market-Web-App/node_modules/.pnpm/registry.npmjs.org/subfont/4.1.2/node_modules/subfont/lib/subfont.js:148:24)
This was not an issue before.
The text was updated successfully, but these errors were encountered: