|Open||None||T76456 Language Engineering tracker of trackers (tracking)|
|Resolved||Nikerabbit||T55015 Font support in Universal Language Selector (tracking)|
|Resolved||Nikerabbit||T43359 Enable WebFonts for the Arabic projects|
|Resolved||KartikMistry||T43940 Amiri font for Arab lacks italics and bold causing bad rendering|
36 hours are too much if you are seeing this all the time, and it is not the week end here either :) So sorry for being so persistent, and please let me know if there is anything I can help with.
Now on Arabic wikipedia all four styles have "local('Amiri')" in the @font-face declaration, as a result people who have the font locally installed are getting the regular font for all text styles (at least on Firefox 17).
OK, after reading bug 41359, comment 22 again, I see why it wasn’t that helpful as it didn’t actually point to the real issue.
The problem is that all the four @font-face rules for Amiri has "local('Amiri')" which causes Firefox to use the regular font for all styles if the user has the font locally installed. The fix is to use "local('Amiri')", "local('Amiri Bold')", "local('Amiri Slanted')" and "local('Amiri Bold Slanted')" for regular, bold, italic and bold italic fonts, respectively.
Created attachment 14288
I guess something like that should work, but I couldn’t test it (I fear it will need setting up local MediaWiki install which is not something I’ve done before).
(In reply to comment #15)
Created attachment 14288 [details]
I guess something like that should work, but I couldn’t test it (I fear it
need setting up local MediaWiki install which is not something I’ve done
Thank you! Please see [[mw:How to become a MediaWiki hacker]], particularly [[mw:MediaWiki-Vagrant]] to test locally and [[mw:Gerrit/Tutorial]] on how to send your patch to gerrit, to speed things up.
The issue is still not fixed. When you have Amiri font installed locally all styles (regular, bold, italic and bold italic) will use the regular font. This is caused by wrong use of local() keyword in the generated CSS by the extension and it should affect any font not just Amiri. See the spec for how local() should be used. The patch I submitted above should fix this, but it has been largely ignored.
I installed Amiri font to test this patch. Apparently it cannot be reproduced in my system. I do wonder if the variant names are correct, because even though amiri-regular is no longer loaded, I see the variants getting loaded? Shouldn't those be also used from my local system?