Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Embed font issue driving me crazy

Embed font issue driving me crazy

Locked

Views: 1,302

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
8 May 2008, 10:49 AM
#1
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Embed font issue driving me crazy

Hi,

For months I've tried to embed a font into zencart, and I just can't get it right. It's probably due to my limited knowledge of css. First I tried sifr, but without any luck, I didn't know where to put the codes and all. I've tried a milion things but without luck.

Now I decided to try the eot. fonts from microsoft. And it makes me this code (after it tells me it can't see my website either on the internet or on localhost :censored: and than it gives me a code {Stand alone fonts}

<STYLE TYPE="text/css"> <!-- /* $WEFT -- Created by: Jvabree ([email protected]) on 8-5-2008 -- */ @font-face { font-family: decorative fontFINAL; font-style: normal; font-weight: normal; src: url(file:///C:\Documents and Settings\Juliet van Ree\DECORAT0.eot); } --> </STYLE>

and if I put it in the stylesheet it gives me a error parsing styles affects ie 6.0

I've tried testing it on localhost and moved the font to my zen directory and adjusted the src accordingly.

Now I'm probably doing something very stupid here, it wouldn't be the first time I tried to paste jscript into css or something like that, but I really would like to get it right. Can someone please point me in the right direction?

Thanks in advance and please have mercy on my stupidity.

Juliet van Ree

9 May 2008, 11:12 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Embed font issue driving me crazy

Just guessing... :smartalec:

Guess #1: What did you paste into your stylesheet? All the code in red in your post? If so, that's too much. Paste in only the part from the @ symbol down to the closing curly bracket. Does it work now? If not...

Guess #2: I wonder if the spaces in the URI are not working within the stylesheet. They may need to be stated in code form by replacing each space with %20 (I think that's the right code.)

Guess #3: Maybe you'll need to do both of the above guesses. :lamo:

Rob

10 May 2008, 1:10 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Embed font issue driving me crazy

I've tried testing it on localhost and moved the font to my zen directory and adjusted the src accordingly.

Now I'm probably doing something very stupid here, it wouldn't be the first time I tried to paste jscript into css or something like that, but I really would like to get it right. Can someone please point me in the right direction?
Fonts available are not controlled by you - only by the fonts available at the customers local and browser.

If you want to use one for impact - make it an image with alt text

10 May 2008, 2:07 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Embed font issue driving me crazy

  1. you can not embed font any more, that doesnt work on most modern browsers
  2. the only way to go, if you dont like images is to use sifr
11 May 2008, 3:45 PM
#5
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

Re: Embed font issue driving me crazy

Thank you all for your answers, it gives me a lot to think about but I'm more confident now I will find a solution for all of the font things. I'll post here to let you know what my final solution will be for applying an alternative font