Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2016-03-03 11:10:39
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
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
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,308
Re: icon fonts not showing up
…and windows users?
Offline
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
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,308
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,308
Re: icon fonts not showing up
needed to add those lines to .htaccess
Header set Access-Control-Allow-Origin "*"
Offline
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,306
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
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
Pages: 1