-
AuthorPosts
-
April 9, 2022 at 3:58 pm #1347791
Dear kriesi-team,
I have a problem with the display of a custom font although everything should work fine (and does under Firefox/mac). Mostly under Windows there is only the fallback-font. I thougt I set everything right with @fontface-tag in the css but it still doesn‘t work.
Could you please have a look and point me in the direction of the mistake?
I created a guest-user if you want to have a look…
best regards,
wolframApril 9, 2022 at 7:14 pm #1347806maybe I should mention that I created the fonts with fontsquirrel and uploadet them via the enfold-theme backend. In firefox/mac, whre I created the webpage everything works fine. In other browsers on windows: not so much…
April 10, 2022 at 5:34 pm #1347858Hi,
Thanks for the link to your site, I see that you are getting an error on your site for the cooper-hewitt font: Failed to decode downloaded font and your Custom Font Manager is showing the MACOSX folder that is inside of the font zip, so try deleting both of the cooper-hewitt fonts in the Custom Font Manager to start fresh, then try the font zip linked below which I removed the MACOSX folder from. I tested this on my demo site and it seems to work correctly on Windows in Chrome when I assign the font in the advanced styling options.Best regards,
MikeApril 10, 2022 at 8:58 pm #1347870Good Evening Mike and thank you. I recognized the mac os x after uploading the font but forgot about it later on.
I can test your zip when I come back from my holidays which is in absot two weeks and will contact you then.
Have a good day
WolframApril 10, 2022 at 9:04 pm #1347872Hi,
Very good, we will leave this open to hear back from you, enjoy your holidays.Best regards,
MikeMay 1, 2022 at 4:32 pm #1350120Hi Mike,
I tried your zip and it works under windows – so thank you for that.
The fonts are a bit blurry though (in windows) and in Firefox and other Browsers on Mac OS I‘m not able to see „bold“ styles for Headlines even if I change the font-weight in the themes style tab.
Do I have to generate other fonttypes like eot or woff for windows and upload them (or change the css (I already tried that but maybe I need to point directly to the font folder under enfold) or what could be a possible solution.
I read this part of the documentation (https://kriesi.at/documentation/enfold/typography/#toggle-id-15) but am not quiet sure which way to go next.
best regards,
WolframMay 1, 2022 at 11:46 pm #1350134Hi,
Thanks for your feedback, I tested the cooper-hewitt zip that I linked above on my demo site closer and it seems that each of the font files have the same font-weight of 400, which is odd, so I believe that when you try to use bold by changing the font-weight to 700 it was making it blurry, I believe this was also messing up the way the font manager works, if you see our documentation on Managing font variants the font family should show with its variants like this:
but this font was not, so I tried zipping each variant on it’s own and uploading them one at a time as shown in our documentation on File Structure, note in this screenshot that they all have the same font-weight:
then I created a test page with spans and custom classes to test the fonts:<span class="cooperhewitt-thin">Cooper Hewitt - thin</span> <span class="cooperhewitt-light">Cooper Hewitt - light</span> <span class="cooperhewitt-book">Cooper Hewitt - book</span> <span class="cooperhewitt-medium">Cooper Hewitt - medium</span> <span class="cooperhewitt-semibold">Cooper Hewitt - simibold</span> <span class="cooperhewitt-bold">Cooper Hewitt - bold</span> <span class="cooperhewitt-heavy">Cooper Hewitt - heavy</span>
and added this css for the custom classes:
.cooperhewitt-thin { font-family: 'cooperhewitt-thin-webfont'; font-weight: 400; font-size: 70px; line-height:70px; color: #000; } .cooperhewitt-light { font-family: 'cooperhewitt-light-webfont'; font-weight: 400; font-size: 70px; line-height:70px; color: #000; } .cooperhewitt-book { font-family: 'cooperhewitt-book-webfont'; font-weight: 400; font-size: 70px; line-height:70px; color: #000; } .cooperhewitt-medium { font-family: 'cooperhewitt-medium-webfont'; font-weight: 400; font-size: 70px; line-height:70px; color: #000; } .cooperhewitt-semibold { font-family: 'cooperhewitt-semibold-webfont'; font-weight: 400; font-size: 70px; line-height:70px; color: #000; } .cooperhewitt-bold { font-family: 'cooperhewitt-bold-webfont'; font-weight: 400; font-size: 70px; line-height:70px; color: #000; } .cooperhewitt-heavy { font-family: 'cooperhewitt-heavy-webfont'; font-weight: 400; font-size: 70px; line-height:70px; color: #000; }
and this is the result:
please give this a try.Best regards,
MikeMay 27, 2022 at 10:43 am #1353111Hi Mike,
I‘m sorry my answer took so long. Everything works fine now and I want to say Thank you for all the effort. I‘ve noticed the thing with the fontweight but thougt I could „overwright“ it. Again: Thank you – I learnt a lot and you can close this topic now.
best regards
WolframMay 27, 2022 at 11:20 am #1353127Hi,
Great, I’m glad that Mike could help you out, and thanks for the update. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Fontproblem with custom font mostly under Windows’ is closed to new replies.