GithubHelp home page GithubHelp logo

Comments (7)

kenmcd avatar kenmcd commented on June 1, 2024

Please provide a link to the test pages.

What Operating System (with version)?
What browsers (with version)?
Test multiple browsers.

Note: there are more problems with Safari browsers than any others.
Try multiple browsers.
It could just be another bug in Safari.
Especially if you have an older version of macOS.

from inter.

tiuscia avatar tiuscia commented on June 1, 2024

@kenmcd

browser: Safari Version 16.3 (18614.4.6.1.5)
OS: Ventura 13.2
Live page where you can test: alokai . com/blog/modernize-sap-cc-storefront-with-headless-frontend
search "Many companies using SAP Commerce Cloud" in the content and change the current font-weight 500 to 600 to the H3

from inter.

kenmcd avatar kenmcd commented on June 1, 2024

I tested that page on Windows 10.
Only thing I changed was the 500 to 600.
Firefox - looks fine
Vivaldi (chromium) - looks fine
They both use the InterDisplay-SemiBold.woff2 file.
I downloaded that file from your site and took a look inside.
All looks good.

Tested on macOS 14.4.1
Safari - not OK - the "i" is missing.
Safari is using the InterDisplay-SemiBold.woff file.
I downloaded that file from your site to take a look inside.
But, there is something wrong with that file.
Cannot be opened in either FontLab or FontCreator.
So I extracted it to a .ttf file.
Cannot be opened.
The error messages state it is not a valid font file.

I do not know where that .woff file came from, but that appears to be the issue.
The Inter download only includes .woff2 files, and no .woff files.
So review the process used to create that file, and test before using.

Note: On Firefox and chromium it looks better at 500.
At 600 it has more visual weight than the heading above it.
It does look different in Safari.
You need to test with more browsers.

from inter.

tiuscia avatar tiuscia commented on June 1, 2024

thanks for checking.

the files were downloaded from this page https://rsms.me/inter/
is there another official page where I could download the font?

from inter.

kenmcd avatar kenmcd commented on June 1, 2024

the files were downloaded from this page https://rsms.me/inter/
is there another official page where I could download the font?

When I download Inter-4.0.zip from that page there are only woff2 files available in it, no woff files.
So I am wondering where the woff files are coming from.

Note: if your Safari needs woff you can just compress them yourself.

from inter.

rsms avatar rsms commented on June 1, 2024

You are requesting italic but not loading any italic fonts which causes you web browser to try an manufacture a slanted font from the roman/upright fonts (and I guess the version of Safari you are using fails to synthesize the "i")

Look at the "e" to see if you are using the true italic font or a synthetic one:

Screen Shot 2024-05-24 at 11 14 55

https://rsms.me/inter/lab/?family=display&italic=1&sample=companies&size=132&varfont=0&weight=600

from inter.

rsms avatar rsms commented on June 1, 2024

the files were downloaded from this page https://rsms.me/inter/
is there another official page where I could download the font?

When I download Inter-4.0.zip from that page there are only woff2 files available in it, no woff files. So I am wondering where the woff files are coming from.

Note: if your Safari needs woff you can just compress them yourself.

Yeah, you can just remove the woff format, making your CSS look like this:

@font-face {
  font-family: "Inter Display";
  font-weight: 600;
  font-display: swap;
  src: url("/font/inter-display/InterDisplay-SemiBold.woff2") format("woff2"),
       url("/font/inter-display/InterDisplay-SemiBold.ttf") format("truetype");
}

Really ancient browsers which does not support woff2 will support ttf. If you really really care about download file size for such visitors, you can do what @kenmcd suggest and produce your own woff files from the ttf files.

For correct font-face declarations, see https://rsms.me/inter/inter.css

from inter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.