In my current project, I have implemented a font-face rule which looks like this:
@font-face {
font-family: aiCustomFont;
src: url('../fonts/myriadpro-regular.otf') format('opentype'),
url('../fonts/myriad pro regular.ttf') format('truetype');
}
Surprisingly, this rule works perfectly on Safari, Chrome, and Firefox. However, it fails to work on IE11 and Edge. Despite checking the console for errors, no issues are being logged. While searching online, most articles related to font problems in IE seem outdated.
Could it be that aside from TTF/OTF formats, additional font formats are needed to ensure compatibility with IE11/Edge?