Current location: Hot Scripts Forums » General Web Coding » CSS » using font-family with other fonts


using font-family with other fonts

Reply
  #1 (permalink)  
Old 12-06-09, 10:55 AM
todjoey todjoey is offline
New Member
 
Join Date: Dec 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
using font-family with other fonts

a question that still bothers me. How can I use the font-family property with a font that I use in my site and is not installed on the client post
Reply With Quote
  #2 (permalink)  
Old 12-08-09, 12:30 PM
ArtphotoasiA's Avatar
ArtphotoasiA ArtphotoasiA is offline
Newbie Coder
 
Join Date: Dec 2009
Location: Italy
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
you can use whatever font you want but if the client have not installed the font in the browser it will never see it....

you can use font-family to create a list of 3 / 4 fonts the browser will check from the first and then go to the second and so on.... and will use the first available in the client browser.
Reply With Quote
  #3 (permalink)  
Old 12-08-09, 02:54 PM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
Most browsers today support @font-face embedding so you can embed a custom font which will display on the user's browser (regardless if the visitor has the font installed or not).

Here's an older thread I started a couple weeks ago with some real code snippits to show you how it works. In this example I'm using my own font, but degrade back to Arial, and then a sans-serif in the event the browser doesn't support the custom font embed:
http://www.hotscripts.com/forums/css...l-degrade.html

Your biggest restriction will be finding a font which license legally supports @font-face embedding. (Most don't). :-/
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
  #4 (permalink)  
Old 12-08-09, 04:43 PM
ArtphotoasiA's Avatar
ArtphotoasiA ArtphotoasiA is offline
Newbie Coder
 
Join Date: Dec 2009
Location: Italy
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Nice way...... but I prefer stay on classic font for main text and use special font as image for title or similar.............
Reply With Quote
Reply

Bookmarks

Tags
css, font, font-family


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
something for fonts... SeanChiarot Script Requests 13 06-25-08 01:42 PM
[SOLVED] [2005] ToolStripComboBox with Font Styles? tim8w Windows .NET Programming 1 04-21-08 11:10 AM
Looking for a script that will allow users to change the font size AND family AshleyQuick Script Requests 1 03-18-07 01:35 PM
Using Fonts Hunter CSS 1 02-23-07 10:31 PM
Font Script Needed Granat Networks Script Requests 0 10-28-04 08:02 PM


All times are GMT -5. The time now is 02:24 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.