I am trying to import a font to a website created using @font-face . But it will not work on Chrome , what ever, and sometimes it works on Firefox , and sometimes not.
Therefore, I have no idea what is happening.
This is what I have tried so far:
@font-face { font-family: "Proxima Nova"; src: url('fonts/Proxima Nova.otf') format('opentype'); }
It almost worked in Firefox , but Chrome didnโt even want to display it, instead it showed some strange font with a completely random size that had nothing to do with css.
Then I tried this:
@media screen and (-webkit-min-device-pixel-ratio:0) { @font-face { font-family: 'proxnova'; src: url('fonts/ProximaNovaSemibold.otf') format('opentype'); font-weight: normal; font-style: normal; } }
These fixed size issues, but now it doesn't show the correct font anywhere. Please, help.
source share