Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-03-03 11:10:39

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

icon fonts not showing up

hi!

could you see “Eleganticons” fonts correctly on that page with firefox, edge?

i can see only with chrome, others displaying numbers. :(
OS is windows 10.

Offline

#2 2016-03-03 11:20:57

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: icon fonts not showing up

Hi, I can see the icons fine in both Safari 9 and Firefox 46 on a Mac.

Offline

#3 2016-03-03 13:25:54

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: icon fonts not showing up

…and windows users?

Offline

#4 2016-03-03 14:57:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: icon fonts not showing up

It looks fine on mac opera 35.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2016-03-03 23:20:10

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: icon fonts not showing up

Gallex wrote #298137:

could you see “Eleganticons” fonts correctly on that page with firefox, edge?

i can see only with chrome, others displaying numbers. :(

Does Firefox windows flag anything about that font in the browser console (Ctrl+shift+J i think — Tools > Web developer > browser console)?
As noted, it works fine in all OS X browsers.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#6 2016-03-04 14:02:50

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: icon fonts not showing up

phiw13 wrote #298144:

Does Firefox windows flag anything about that font in the browser console (Ctrl+shift+J i think — Tools > Web developer > browser console)?

actually it does:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://paadivabrik.ee/fonts/ElegantIcons.woff. (Reason: CORS header 'Access-Control-Allow-Origin' missing). downloadable font: download failed (font-family: "ElegantIcons" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed source: http://paadivabrik.ee/fonts/ElegantIcons.woff

Offline

#7 2016-03-04 16:25:59

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: icon fonts not showing up

needed to add those lines to .htaccess
Header set Access-Control-Allow-Origin "*"

Offline

#8 2016-03-04 23:10:56

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: icon fonts not showing up

@Gallex

That was one of the two suspicions I had. But that raises the question, why does Firefox on Windows (10 only ?) flags it, but not Firefox on OS X? The two should work the same, as far as Access-Control headers are concerned.

In addition, the location of the font is well within the same realm as the site (stylesheet); my understanding is that that ‘error’ should not been triggered in your case — unless there are some redirects in place on the server that I didn’t see…

(My other suspicion was that the font was rejected for incompatibility with the Windows 10 font-system)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#9 2016-03-05 17:50:06

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,303

Re: icon fonts not showing up

Header set Access-Control-Allow-Origin "*"

Is that practically opening a security breach, then?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#10 2016-03-07 13:52:10

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: icon fonts not showing up

You can also base64 encode the fonts to avoid screwing around with Access-Control-Allow-Origin: geoff.evason.name/2010/05/03/cross-domain-workaround-for-font-face-and-firefox/

Offline

Board footer

Powered by FluxBB