| Welcome to Webforumz.com. |
|
Sep 25th, 2007, 21:35
|
#1 (permalink)
|
|
New Member
Join Date: Aug 2007
Location: England
Age: 18
Posts: 6
|
[SOLVED] The font problem
Hello there,
I came across with a problem - some users (particulary that don't have "Lucida Sans" in their "Fonts" folder) can't view my page properly. The design goes slightly down because of that.
I'm wondering is there a way to solve that problem (like integrating the font into the CSS or something) or I should go for an alternative ("Georgia", "Geneva")?
Thanks.
|
|
|
Sep 25th, 2007, 21:38
|
#2 (permalink)
|
Join Date: Dec 2005
Location: On Internet
Posts: 5,550
|
Re: The font problem
You should go for an alternate font. Do you know how to accomplish this in CSS? If not, I can give you the code to use. As far as I know you can not have the font embedded using XHTML/CSS. You can do this with flash however.
|
|
|
Sep 25th, 2007, 22:05
|
#3 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: The font problem
Are you allowed to offer a download of the font so that people can view it properly?
or is that illegal?
I know it's not very practical
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Sep 25th, 2007, 22:08
|
#4 (permalink)
|
|
Moderator
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,157
|
Re: The font problem
Quote:
Originally Posted by predatoruk90
I'm wondering is there a way to solve that problem (like integrating the font into the CSS or something) or I should go for an alternative ("Georgia", "Geneva")?
|
You can't embed fonts into CSS. The solution is simple: specify fall-back fonts:
- Code: Select all
font-family: "Lucida Sans", Verdana, sans-serif;
This indicates your font preference. You can list as many as you want, but you should always end with the generic fall-back "sans-serif" or "serif".
|
|
|
Sep 26th, 2007, 08:29
|
#5 (permalink)
|
|
New Member
Join Date: Aug 2007
Location: England
Age: 18
Posts: 6
|
Re: The font problem
Thanks for your replies.
Ok then, I'll do as you say - list the alternative fonts (frankly speaking I didn't know what that set of fonts did untill now, thanks). What do you think will be the best alternative for Lucida Sans:
font-family: "Lucida Sans", "Geneva", "Georgia", "Verdana", sans-serif;
You say it's possible to use flash to help me - how does it work, is it difficult to do?
Thanks in advance.
|
|
|
Sep 26th, 2007, 09:08
|
#6 (permalink)
|
|
Section Manager - Website Critique
Join Date: May 2007
Location: inside the outside
Posts: 1,094
|
Re: The font problem
Quote:
Originally Posted by predatoruk90
You say it's possible to use flash to help me - how does it work, is it difficult to do?
|
You can also do this using ASP, using a constants file and a few funcky functions.........
actually, scrap that. The idea I had would have spit out an image, perfect for producing headings etc, but wouldn't work for main text in your site.
Ignore me
|
|
|
Sep 26th, 2007, 09:50
|
#7 (permalink)
|
|
Moderator
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,157
|
Re: The font problem
Quote:
Originally Posted by predatoruk90
font-family: "Lucida Sans", "Geneva", "Georgia", "Verdana", sans-serif;
|
Leave out Georgia, because it's a serif font (the others are sans-serif).
|
|
|
Sep 26th, 2007, 13:16
|
#8 (permalink)
|
|
New Member
Join Date: Aug 2007
Location: England
Age: 18
Posts: 6
|
Re: The font problem
Ok, then:
font-family: "Lucida Sans", Geneva, Verdana, sans-serif;
That should do - thank you all for your help.
|
|
|
Sep 27th, 2007, 08:58
|
#9 (permalink)
|
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 62
|
Re: The font problem
|
|
|
Sep 27th, 2007, 13:01
|
#10 (permalink)
|
|
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 30
Posts: 4,883
|
Re: The font problem
Quote:
Originally Posted by drd
|
Or you can head on over to the FAQ section of our newsletter 
|
|
|
Sep 28th, 2007, 16:11
|
#11 (permalink)
|
|
New Member
Join Date: Aug 2007
Location: England
Age: 18
Posts: 6
|
Re: The font problem
Thx
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|