I'm coding my first layout (though it's not my first time working with LJ layout codes) and everything's basically going fine. The only problem I've come across is that Firefox refuses to show the custom font I'm using as my accent font (header nav, h tags, journal entry title, and footer nav). I've tried everything I can think of, as well as
(
Read more... )
Comments 23
I love this site for generating cross browser syntax. Not only does it convert the fonts for you, but it also generates the CSS. I tested the output both locally and on my own server and it works in every major browser.
However the major issue is simple: Firefox does not allow cross site font web embedding. This website has a potential work around you may want to play with, but I haven't had a chance to test them out.
Best of luck!
Reply
So I opened up Firefox (I don't actually use Firefox, so I'd never noticed) and checked it. The font showed up. [Insert sighs of "what the shit is going on" here.] Even more confusing is the fact that I wrote that @font-face code too and, when the two are compared, the only variation is the font name itself (and the hosting URLs, of course).
Anyways, I got to rambling; my apologies. I'll try FontSquirrel and see if that fixes my problem. I'd seen the site in my Google journey, but I figured it would just generate code I knew how to write and passed it by. Thank you! ♥
Reply
Reply
Edit: I did a bit of searching and came out with this as my new code:
@font-face ( ... )
Reply
(The comment has been removed)
But yeah. I knew I definitely wasn't the only one with the problem and I know, personally, I hate having to dig through threads to find the fix details, so I figured I should probably make it easy for any people who might need it, especially considering there's a lot of trial and error and random side conversations to dig through in the top thread on this post.
I'm really glad you got your fonts working properly! ♥
Reply
Reply
@media screen {
@font-face {
font-family: 'Jim Nightshade';
font-style: normal;
font-weight: 400;
src: local('Jim Nightshade'), local('JimNightshade-Regular'), url(http://themes.googleusercontent.com/static/fonts/jimnightshade/v1/_n43lYHXVWNgXegdYRIK9IDNNFFxRySv6E1oCJMCE1M.woff) format('woff');
}
}
What am I doing wrong?
Reply
@font-face {
font-family: 'Jim Nightshade';
font-style: normal;
font-weight: 400;
src: local('Jim Nightshade'), local('JimNightshade-Regular'), url(http://themes.googleusercontent.com/static/fonts/jimnightshade/v1/_n43lYHXVWNgXegdYRIK9GeI2efzuxEXXKel_Sw2G4E.woff) format('woff');
}
should be all you need. :)
Reply
Reply
Reply
Leave a comment