Having difficulties with IE11 embedded font not functioning properly despite attempting all standard solutions

I'm having a slight issue with my embedded fonts. They seem to be working perfectly in Firefox, Chrome, and Safari, but unfortunately not in Internet Explorer (tried versions 11 and 10). I've managed to get some fonts to load in IE, but others just won't cooperate. Here's a snippet of the CSS:

/* functioning */
@font-face {
    font-family: 'FoundersGroteskWeb-Semibold';
    src: url(./fonts/FoundersGroteskWeb-Semibold.eot);
    src: url(./fonts/FoundersGroteskWeb-Semibold.eot?#iefix) format('embedded-opentype'),
        url(./fonts/FoundersGroteskWeb-Semibold.woff) format('woff');
    font-style: normal;
    font-weight: normal;
            }

/* non-operational */    
@font-face {
    font-family: 'FoundersGroteskX-CondensedWeb-Bold';
    src: url(./fonts/FoundersGroteskX-CondensedWeb-Bold.eot);
    src: url(./fonts/FoundersGroteskX-CondensedWeb-Bold.eot?#iefix) format('embedded-opentype'),
        url(./fonts/FoundersGroteskX-CondensedWeb-Bold.woff) format('woff');
    font-style: normal;
    font-weight: normal;
}

All fonts are correctly named and served. One discrepancy I noticed is that while other browsers were using the woff file, IE was opting for the first eot file (without #iefix). In an attempt to resolve this, I removed all references to eot files so IE would default to woff. However, even then it only loaded the first font and ignored the second one (unlike other browsers which had no issue loading both).

Checking the network tab in IE, I can see a 200 response for the first font, but nothing at all for the second font, indicating there might be a parsing issue with the CSS. Both declarations are identical except for the font name, so it's puzzling why one isn't working.

If anyone has any suggestions on what else I could try, please share because I'm running out of options!

Answer №1

It appears that Internet Explorer versions 9, 10, and 11 have a restriction of only allowing 31 characters in font face name declarations. In order to stay within this limit, it is recommended to rename your font to "FoundersGroteskX-CndWeb-Bld", which is precisely 30 characters long. This is to ensure that the total character count does not exceed the maximum when including quotes and a semi-colon.

Answer №2

Following your advice, I attempted to reduce the font names, but unfortunately, this approach did not resolve the issue in the most recent version of Internet Explorer:

</style>
<style type="text/css">

@font-face { 
  font-family:"Avenir"; 
  src: url("./Fonts/Avenir.eot");
  src: url("./Fonts/Avenir.eot?#iefix") format("embedded-opentype"),  
       url("./Fonts/Avenir.woff") format("woff"); 
} 

</style>

Could it be possible that Internet Explorer is no longer compatible with woff fonts?

Answer №3

Ensure font download security is checked, as it needs to be enabled for loading font icons.

To do this, follow these steps:

Go to IE>Internet options>Intranet>Custom Level>Downloads>Font Download

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Anomaly with Responsive Images in Internet Explorer 7

Something unusual has come up. In the process of developing a WordPress theme, I needed it to be completely responsive. I decided to create a "gallery" consisting of rows with 3 thumbnails each, which would open in a lightbox when clicked. To achieve this ...

jQuery smooth scrolling problem causing a one-second page "blinking" issue

Currently, I have implemented a smooth scrolling effect on my website using the following jQuery code: jQuery('html,body').animate({scrollTop:scrollTarget}, 1000, "swing"); Although the effect works well in general, I have noticed that when mul ...

Is there a way to use JavaScript to emphasize specific choices in an HTML select element?

Recently, I came across this article: How to Highlight Options in an HTML Select Using jQuery The concept is very similar to what I am trying to achieve, but it seems a little too complex for my current level of understanding. In the html body of my proj ...

What could be the reason for the Deeplink not functioning properly with my customized Host and schema?

When I attempted to open my app by clicking a link from the browser, I found that it worked perfectly fine and even received the pathPrefix when using the host and schema provided on test sites. However, when I changed the host to that of my own applicatio ...

Positioning a video element in the center using the margin property with a value of 0 and

I'm having trouble getting this video element centered on my webpage. Here's the code snippet I've been working with: HTML <div id="container">     <video id="vid" x-webkit-airplay="allow" controls width="640" height="360" src ...

Is it possible to target elements within a UMAP iframe using CSS?

I have integrated a uMap map into my website. Here is the code: <iframe id="umapiframe" class="iframe-umap" width="100%" height="300px" frameborder="0" allowfullscreen src="//umap.openstreetmap.fr/f ...

Concealing an Automatically Updated Section when Devoid of Content -- Ruby on Rails Version 4

I have come across various solutions to this problem, but none of them seem to be effective for my specific project. In my application, the user's previous choices are displayed in multiple divs. Initially, all the divs are empty. As the user progress ...

What is the best way to conceal a div when there are no visible children using AngularJS?

I need help with hiding a parent div only if all the child items are invisible. I have successfully hidden the parent when there are no children, but I am struggling to figure out how to hide it based on visibility. <div ng-repeat="group in section.gro ...

issue with using references to manipulate the DOM of a video element in fullscreen mode

My current objective is to detect when my video tag enters fullscreen mode so I can modify attributes of that specific video ID or reference. Despite trying various methods, I have managed to log the element using my current approach. Earlier attempts with ...

JavaScript and Angular are used to activate form validation

Update: If I want to fill out the AngularJS Forms using the following code snippet: document.getElementById("username").value = "ZSAdmin" document.getElementById("password").value = "SuperSecure101" How can I trigger the AngularJS Form validation befo ...

Enhance PHP search functionality by showcasing hidden auto-complete suggestions in real-time

I am attempting to showcase unlisted search results that can be clicked on to redirect the user to a specific HTML page based on data retrieved from a MySQL database. My development environment is PhoneGap. Thus far, I have successfully set up a basic PH ...

Problem involving the h1 tag nested within a div container

I have two files, one in .html format and the other in .css format. Here is a snippet of their content: #left, #right { display: inline-block; } #left { width: 15%; height: 550px; margin-bottom: 100px; margin-left: 10px; border: 1px solid bl ...

Prevent Drag-and-Drop Functionality for HTML5 Range Inputs

Is it possible to prevent HTML5 drag and drop functionality on a specific element within a draggable container? In our scenario, we are creating a list of items with settings, including the use of <input type="range" />. However, when users attempt ...

How can I speed up the loading time of my background image?

I have noticed that my background image is loading slowly on my website. I expected it to be cached so that subsequent pages using the same background would load instantly. However, the background image is only loading once the entire page is drawn. My CS ...

Tips for positioning a div element at the bottom of a webpage

I am currently working on placing this banner ad at the bottom of the page. I want the image to be positioned within the banner div without overlapping the div above it. .banner { width: 100%; } .banner img { width: 100%; max-he ...

Locating or modifying items within the same row of a table using a specific column value or values

After struggling with this issue for quite some time, I finally found a solution that may benefit others. The issue at hand was as follows: I needed to locate a row by matching one or more specific cell values Then modify the value of one or more cells ...

Incorporating text and images sourced from a database into an HTML webpage

I am in the process of creating a website using HTML, CSS, and Javascript. My goal is to have the ability to update images, film titles, descriptions, and links from a database that will continue to expand over time. Check out my work in progress page her ...

What is the best way to send various variables using an onclick event?

My action plan was as follows: $(document).on("click", "#deleteMe", function (){ var id = $(this).data("id"); console.log(id); // the function responsible for deleting the event using its id belongs here }); The HTML for my delete button lo ...

Manipulating classes within ng-class in AngularChanging classes in ng-class dynamically

Featuring multiple elements with an ng-class that behaves similarly to a ternary operator: ng-class="$ctrl.something ? 'fa-minus' : 'fa-plus'" To access these elements, we can compile all the ones with fa-minus and store them in a lis ...

Develop a JSF/XHTML project that showcases a single XHTML page containing duplicated content of itself

Recently, I encountered a scenario where I have an xhtml page containing a sessionscoped bean. I am looking to utilize this page twice within another html page - once on the left side and again on the right side of the screen. The issue I faced is that w ...