[Solved] Font not loading Open Sans Light (Enterprise)

Popular automatic website translation tool

[Solved] Font not loading Open Sans Light (Enterprise)

Postby claesbas » Sun Jan 26, 2014 4:03 pm

I have set things up at http://alanyapenthouse.net/ .. (Joomla 3.2.1 website) with Enterprise version of Gtranslate.

Translations are working but I have some problem with all languages (except default, swedish) that the Open Sans Light font is not loaded. I changes to Times New Roman on menus etc.

Why are the font not loaded on the diffrent languages? Can I change the URL or something like this in CSS files or somewhere to make them load?
claesbas
 
Posts: 22
Joined: Tue Jan 21, 2014 2:57 pm

Re: Font not loading Open Sans Light (Enterprise)

Postby claesbas » Sun Jan 26, 2014 4:21 pm

Also noticed that icons (from the Awesome Font) is not loaded on pages like this: http://en.alanyapenthouse.net/alanya/fl ... nformation

Guess its related to the same type of problem.
claesbas
 
Posts: 22
Joined: Tue Jan 21, 2014 2:57 pm

Re: Font not loading Open Sans Light (Enterprise)

Postby claesbas » Mon Jan 27, 2014 1:26 pm

The fonts are done with Font Squirrel (http://www.fontsquirrel.com)... Using this CSS and having those files in the CSS folder.

What can I do to make them work?

Code: Select all

@font-face {
    font-family: 'open_sans_lightregular';
    src: url('opensans-light-webfont.eot');
    src: url('opensans-light-webfont.eot?#iefix') format('embedded-opentype'),
         url('opensans-light-webfont.woff') format('woff'),
         url('opensans-light-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'open_sansregular';
    src: url('opensans-regular-webfont.eot');
    src: url('opensans-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('opensans-regular-webfont.woff') format('woff'),
         url('opensans-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'open_sans_semiboldregular';
    src: url('opensans-semibold-webfont.eot');
    src: url('opensans-semibold-webfont.eot?#iefix') format('embedded-opentype'),
         url('opensans-semibold-webfont.woff') format('woff'),
         url('opensans-semibold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

claesbas
 
Posts: 22
Joined: Tue Jan 21, 2014 2:57 pm

Re: Font not loading Open Sans Light (Enterprise)

Postby Edvard » Mon Jan 27, 2014 3:06 pm

Hi,

It is actually a Firefox problem related to cross-domain linking of fonts. So when you are on English sub-domain your fonts still load from the main domain and Firefox cross-domain policy blocks it.

To fix the issue you need to add this rules in your .htaccess file (for Apache server only):

Code: Select all
<FilesMatch "\.(ttf|ttc|otf|eot|woff)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
</FilesMatch>


This will allow cross-domain linking of fonts and Firefox will be fine.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Font not loading Open Sans Light (Enterprise)

Postby claesbas » Mon Jan 27, 2014 3:11 pm

Great! .. I added that to .htaccess and now it works fine! Thanks alot!
claesbas
 
Posts: 22
Joined: Tue Jan 21, 2014 2:57 pm

Re: Font not loading Open Sans Light (Enterprise)

Postby Edvard » Mon Jan 27, 2014 3:15 pm

Good to hear that!

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [Solved] Font not loading Open Sans Light (Enterprise)

Postby MCMC » Wed Aug 13, 2014 9:21 pm

WOW :) lol thanks I spent HOURS on this

Thanks V much
MCMC
 
Posts: 4
Joined: Wed Aug 13, 2014 3:14 am

Re: [Solved] Font not loading Open Sans Light (Enterprise)

Postby Yana » Thu Aug 14, 2014 10:07 am

You're welcome!
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4134
Joined: Thu Jan 12, 2012 6:21 pm

Re: [Solved] Font not loading Open Sans Light (Enterprise)

Postby ray » Wed Aug 20, 2014 8:47 am

Hello, I'm running Enterprise version and I've added the code
to the htaccess file but it still doesn't work on firefox and IE.
My template is Acacia from rockettheme.
I'd like to send you the URL of my website in a private message, how can I send it?
ray
 
Posts: 1
Joined: Wed Aug 20, 2014 4:40 am

Re: [Solved] Font not loading Open Sans Light (Enterprise)

Postby Yana » Wed Aug 20, 2014 1:39 pm

Hi,

You can send by clicking PM button or you can use the contact form on our homepage.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4134
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux