[personal profile] ex_beautified302 posting in [community profile] style_system
I've tried nearly everything I can think but it's just a no-go. The font only shows up on Chrome. Firefox and IE won't render it. I have the fonts in the exact folder that the @font-face CSS file is stored. Here's my CSS file, if it helps:



And the journal I'm trying to test it on is the one I'm currently posting from.

Edit - Solved! How I got it to work:

Looking at this entry and going to [personal profile] thoitaxh's journal, I saw they were able to do it through Dropbox. I tried using dropbox but it didn't work until I realized they were linking to it with the url that hitting "Download" gives you instead of the "Share" url. (I wasn't very familiar with Dropbox.) Then you have to remove everything in the url after the ".ttf" or ".eot" part. And now I got everything working fine, so I assume Dropbox has the .htaccess file to allow cross-domain embeds.

Thanks to everyone who helped me out.

Date: 2014-02-05 11:33 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
You don't seem to have any fonts attached to your CSS though to make them apply. And I'm thinking you would need to create those rules, that you would need to specify, for instance, that the body or .entry-content use the font(s) you've selected... and I'm saying that only because when I checked your style sheet just now all I saw was @font-face CSS with no other styling specified at all.

ETA; OK, I had to scroll down a bit because my window was sized funny to see you do have a font applied to #title and it is working. That's in Firefox 26 on XP, if that helps you any...
Edited (more info) Date: 2014-02-05 11:38 pm (UTC)

Date: 2014-02-06 12:02 am (UTC)
syntheid: [Elementary] Watson drinking tea looking contemplative (Default)
From: [personal profile] syntheid
Firefox has some restrictions about displaying files, but might require DW to fix their .htaccess? Link for explanation. Not totally sure, though.

What's weird is my embedded fonts from Google are working in Firefox, so I'm not sure what's different there. Looking into it a bit more but maybe someone else will have a better explanation for you.

Date: 2014-02-06 07:42 am (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
It's actually not a DW-side thing, it's an other-server side thing! Mozilla blocks cross-domain font-embeds so your hosting side has to say to Firefox 'it's okay to embed these files other places!' by putting that stuff in .htaccess

Google already has their servers set up to say 'it's okay to embed these elsewhere' which is why they work without a problem.

Date: 2014-02-06 06:13 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

You're welcome - I ran into the problem when I was working on some layouts last year :)

Date: 2014-02-06 01:38 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
But the files and the CSS are on the same website???

Are they on DW? I actually can't tell by what I'm seeing in Web Dev but your page source tells me they're not. If that's the case, perhaps put the style rules into DW's custom CSS box and see if that helps?

As far as me seeing your custom font, I have no idea what it looks like, so I was able to tell it's there only by removing the style rule for it from the CSS you're using. Once I did that the font changed, telling me the one you selected must indeed be showing up.

Sorry I can't help you much more than that... :(

Wait, yes I can, well maybe...is this the font you're supposed to see? http://imgur.com/ZLYTP0M

ETA...OK, it isn't...turns out I removed all the style rules to get the font to change. All that did was change the title text from normal to bold, it didn't actually change the font at all, so never mind, my mistake entirely. So short of what mythos said (fiddling with the style rules to get them to work somehow) I don't see another good answer - and just fwiw, you should be able to host your style rules/the style sheet itself off-site like you currently are and have them work just fine - you shouldn't need to separate the rules by what they control or use DW's custom CSS box simply to get them to work, so you can safely disregard my previous idea on that.
Edited (attached screencap/typos/more info) Date: 2014-02-06 01:56 am (UTC)

Date: 2014-02-06 05:02 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Well, my initial and obviously mistaken thought on it was, "Well, if we split up the files so the fonts are hosted on webs.com and the rules that style those fonts are hosted on DW, maybe it'll work". That was...I just don't even know what I was thinking. It should all work regardless of what's hosted where.
Edited Date: 2014-02-06 05:09 am (UTC)

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 9th, 2026 08:08 pm
Powered by Dreamwidth Studios