IE8 Icon Fonts fix and unused language keys

gfriends posted 20th of August 2012 in Community Voice. 1 comment.

Hello to all, this is the first time I write a note and I hope to do it properly.

As we all know, Dolphin 7.1 will use the icon fonts. All modern browsers supports properly the icon fonts, except IE8. I was the first one to report the problem at the Dolphin development team, and after several days of research I found the solution. And it is very trivial.

You need to create two @font-face rules: the first will be used by IE8, the second by all other browsers. If you use only one rule, IE8 does not recognize it and does not display the font.
Icon.css before the change:

@font-face {
    font-family: "sys-user";
    src: url('../fonts/fontawesome-webfont.eot');
    src: url('../fonts/fontawesome-webfont.eot?#iefix') format('eot'),
        url('../fonts/fontawesome-webfont.woff') format('woff'),
        url('../fonts/fontawesome-webfont.ttf') format('truetype'),
        url('../fonts/fontawesome-webfont.svg#FontAwesome') format('svg');
    font-weight: normal;
    font-style: normal;
}

Icon.css after the change:

@font-face {
    font-family: "sys-user";
    src: url('../fonts/fontawesome-webfont.eot');
    font-weight: normal;
    font-style: normal;       
}

@font-face {
    font-family: "sys-user";
    src: url('../fonts/fontawesome-webfont.woff') format('woff'),
        url('../fonts/fontawesome-webfont.ttf') format('truetype'),
        url('../fonts/fontawesome-webfont.svg#FontAwesome') format('svg');
    font-weight: normal;
    font-style: normal;
}

 

I should also talk about the great amount of unused language keys in Dolphin. I downloaded one of the latest SVN version of Dolphin 7.1, I "clean" the file lang-en.php to have only the keys of the language without any translation, and I searched the more than 2500 keys in the code of Dolphin (PSPad editor is the software I used). The result was almost shocking: about 600 keys in the file does not exist in the code of Dolphin. And this causes a great loss of time to all those who decide to translate itI think it is appropriate that Andrew Boon and his team decide to check and eliminate all unnecessary keys. I remain at their disposal to provide the list of all unused keys I found, so they can verify their effective uselessness.

 

Finally I would like to say to Andrew and his team that there is a small bug in language selection and templates in Dolphin 7.1. Changing language or template you return to the homepage.

 

I hope all this informations can be useful.

 

UPDATE: The IE8 Icon Fonts Fix allow to display icons in IE8 (which is impossible with current icon.css file), but occasionally the browser will not load the font (this happens especially when a page loads quickly, in the member menu, and sometimes in the administration pages). Seems to be a problem of IE8, but I hope it can be bypassed by the BoonEx team or any member of the community.

 
Recommended by
 
 
Comments
·Oldest
·Top
Please login to post a comment.
AlexT
Thank you for the info.
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.059792995452881