Need help with CSS and fonts
sjnoel
Registered Users Posts: 41 Big grins
Hi everyone,
I'd appreciate any help on this. I'm having trouble with fonts on my new smugmug customization.
On our website, www.cmewebsites.com, we are using Franklin Gothic Demi Condensed. We're using a font kit that's been uploaded to our server. It works fine in all browsers.
We added it to our smugmug customization: cmewebsites.smugmug.com Knowing that we can't upload a font kit, we added the CSS with a hard reference to the font kit that's functioning on our server.
Yet it only works in Chrome. It doesn't work in IE or FF. We've set a secondary font (Oswald) that works in IE an FF (coming from Google fonts). It seems to me we must be calling it right when it works in Chrome.
This is how we're calling the font in the Entire Site CSS file:
@font-face {
font-family: 'franklin_gothic_demi_condRg';
src: url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.eot');
src:
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.woff') format('woff'),
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.ttf') format('truetype'),
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.svg#franklin_gothic_demi_condRg') format('svg'),
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.eot?#iefix') format('embedded-opentype');
}
Anybody have any ideas?
Thanks,
Jane
I'd appreciate any help on this. I'm having trouble with fonts on my new smugmug customization.
On our website, www.cmewebsites.com, we are using Franklin Gothic Demi Condensed. We're using a font kit that's been uploaded to our server. It works fine in all browsers.
We added it to our smugmug customization: cmewebsites.smugmug.com Knowing that we can't upload a font kit, we added the CSS with a hard reference to the font kit that's functioning on our server.
Yet it only works in Chrome. It doesn't work in IE or FF. We've set a secondary font (Oswald) that works in IE an FF (coming from Google fonts). It seems to me we must be calling it right when it works in Chrome.
This is how we're calling the font in the Entire Site CSS file:
@font-face {
font-family: 'franklin_gothic_demi_condRg';
src: url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.eot');
src:
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.woff') format('woff'),
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.ttf') format('truetype'),
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.svg#franklin_gothic_demi_condRg') format('svg'),
url('http://www.cmewebsites.com/template_dwt/fonts/14359-webfont.eot?#iefix') format('embedded-opentype');
}
Anybody have any ideas?
Thanks,
Jane
0
Comments
@font-face code
font-family code:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I'm about 40 minutes from Pittsburgh (to the east). Where did you used to live?
Pittsburgh is a pretty city, but sure can't compare with your landscapes! Some beautiful photos on your site.
Thanks,
Jane
I'll respond to your font question on the other thread.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Hi Jane,
It looks like you have the code in the correct format, based on my knowledge of how the font's are downloaded to the browser using CSS. My only guess is that perhaps the files themselves are the problem (the .eot file or the .ttf, etc). Otherwise it looks like you've got it fine.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Well isn't that something! I live in Grapeville - a very town just outside Greensburg. We go through Murrysville regularly and have clients there. It's a nice place!
Congrats on your parent's 50th. We did that a few years go. My parents are in the Irwin area (1 turnpike exit from Monroeville.)
My parents were born in Greensburg and most of my relatives still live in Greensburg and Latrobe. My parents live in Jeanette now. Small world.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk