Tagged: Fonts
-
AuthorPosts
-
September 7, 2014 at 1:03 pm #314715
Hi. I’m using Open Sans font on my entire website.
Unfortunately, on some computers (including my client’s computer) the font is missing polish national characters – they get substituted by squares or by glyphs from another font:
http://oi62.tinypic.com/2qnxeko.jpgIt seems that the problem occurs, when someone already has the font installed on their computer, but some version which is missing the polish characters.
How can I fix this? Is there any way to force the browser to use the webfont?
September 8, 2014 at 7:39 pm #315309Hey!
I’m not noting the issue but try adding this at the very end of your theme / child theme functions.php file:
function add_subset_func($fontlist) { $fontlist .= "&subset=latin,latin-ext"; return $fontlist; } add_filter('avf_google_fontlist', 'add_subset_func');Cheers!
JosueSeptember 9, 2014 at 1:08 am #315451Thanks for your reply!
I’ve modified functions.php, as you suggested, but the problem still occurs:(
Do you have any other ideas?I’m able to reproduce that problem on my computer by installing the limited version (lacking the latin-ext subset) of the font in my system (windows 7):
https://www.dropbox.com/s/386auuoooukephf/OpenSans-Regular-webfont.ttf?dl=0With the .ttf file installed in C:\Windows\Fonts directory, some browsers seem to prefer it over the webfont provided in css. As you can see the header is not displayed correctly in IE and Firefox:
http://oi61.tinypic.com/2qiwvoh.jpgSeptember 9, 2014 at 2:05 am #315488September 9, 2014 at 8:17 pm #316083Yes, same problem on jsbin.
IE: http://oi58.tinypic.com/2uogpph.jpg
Firefox: http://oi57.tinypic.com/j0iqgl.jpgBest regards,
BogusSeptember 9, 2014 at 9:07 pm #316101Hey Bogus!
The problem is with Open Sans then, try using a font that ensures full functionality with Polish characters.
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.
