Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
photo of Jennifer Kyrnin

Jennifer's Web Design / HTML Blog

By Jennifer Kyrnin, About.com Guide to Web Design / HTML since 1997

Reader Question: How to add special fonts?

Friday July 4, 2008

Question?
aniketh asks:

How do i embed the style of my text on my web page. How do i change the font of my webpage... Even though i write in in my html code. what should be the procedure of uploading the font to the server.. is it possible?

My Thoughts
It sounds like aniketh wants to set up special fonts that aren't commonly found on computers. There are a couple of ways to do this.

The easiest is to use dynamic fonts. Dynamic fonts are a way to embed exactly the font family you want to use in the Web page. The problem is that dynamic fonts can increase download times for pages to make them nearly unusable. And what's worse, dynamic fonts aren't well supported in Web browsers.

The other way to do this is to create images of the text you want in specific fonts. This will guarantee that your Web page text will look exactly as you want them to look, no matter what browser or operating system your customers are using. The problem with using graphics is that your text is not accessible, it can't be resized for people with vision problems, and if you use a lot of text graphics, it can make your pages slow to download.

The best way to put special fonts on your Web pages is with CSS. You can specify a series of font families in your order of preference. Then, customers who have your favorite font will see the site exactly as you would like, and you can indicate alternatives if they don't have it. This helps your pages load quickly, lets people resize the fonts with their browsers, and ensures the pages are accessible. Plus, CSS doesn't require special technology or browser support.

Help with Fonts

Do you use special fonts?
Fonts and typography are a vital part of good Web design, but it can be very frustrating. So, some Web developers just use very basic fonts like Arial and don't worry about it too much. How do you handle fonts and typography? Do you use graphics, CSS, or dynamic fonts? Let us know by posting in the comments or answering aniketh's's post.

Comments

July 4, 2008 at 12:37 pm
(1) Martyn P says:

What about sIFR? I’ve never tried it, but it sounds great - what do you think?

July 4, 2008 at 1:05 pm
(2) Jennifer Kyrnin says:

sIFR, for those who don’t know, stands for “Scalable Inman Flash Replacement”. It is a form of CSS Image Replacement that replaces CSS styled text with images where possible. I have links to it and several other CSS image replacement techniques on my site here: http://webdesign.about.com/od/imagereplacement/CSS_Image_Replacement.htm

July 5, 2008 at 2:23 am
(3) Corporate Website Design says:

Good tips on how to style text on a web page especially for newbies. I myself go for CSS for the same reasons mentioned above…nice post.

July 5, 2008 at 4:53 pm
(4) Randall says:

As a developer I have accepted the fact that I am design-challenged.

However, I have found that most designers I work with use clean standard fonts - primarily Verdana and Tahoma, occasionally Arial - and Times New Roman or Courier for special effects.

When using really unusual fonts, we use images.

July 9, 2008 at 8:54 am
(5) Richard says:

I “hand roll” almost every web page I do with PHP, CSS and an occasional javascript and I use HTML Kit for my editor. It beats using Notepad by several light years.

I am leery of using visual type editors, like Dreamweaver or Front Page, as you are not really doing web page design with them. And if you don’t understand HTML you are at their mercy. But for really simple projects, like putting up a newsletter without too many bells & whistles, Front Page is Ok.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Web Design / HTML

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.