Click Here!
home account info subscribe login search My ITKnowledge FAQ/help site map contact us


 
Brief Full
 Advanced
      Search
 Search Tips
To access the contents, click the chapter and section titles.

Platinum Edition Using HTML 4, XML, and Java 1.2
(Publisher: Macmillan Computer Publishing)
Author(s): Eric Ladd
ISBN: 078971759x
Publication Date: 11/01/98

Bookmark It

Search this book:
 
Previous Table of Contents Next


Dynamic Fonts

Unfortunately, as shown in the three previous chapters, although both Netscape and Microsoft offer downloadable font technology—enabling Web page designers to ensure that their users will have access to the fonts needed to view the true design—their two systems are incompatible. However, using the same techniques of browser detection and conditional HTML code generation discussed in the previous sections, it is possible to create a Web page that includes custom fonts and will work in version 4 and higher of either browser.

  See “Dynamic Fonts,” p. 598.


FIGURE 27.8  The Cross-Browser Dynamic HTML library gives you an easy way to change the content of a Web page dynamically in either browser.


FIGURE 27.9  Responding to mouse events and other Web browser events can be done in either browser when programmed correctly.

To accomplish this, you would follow the following steps:

1.  Design your page(s) once, using the font or fonts that you wish to use in the final version to be delivered via the Web.
2.  Use Microsoft’s Web Embedding Font Tool (WEFT) to create a version of the font suitable for download over the Web using its OpenType font technology.
3.  Use a third-party product such as Hexmac Typographic 2.0 to prepare a version of the font in the Bitstream TrueDoc font format supported by Netscape Navigator.
4.  Finally, use conditional code generation techniques to write out the appropriate code for each browser, either the font-face src style sheet attribute for Internet Explorer, or an appropriate <LINK> tag for Netscape Navigator.


CAUTION:  

Remember that not all fonts are in the public domain or licensed to be included as downloadable fonts in your Web documents. Make sure that you use only properly licensed or public domain fonts for this purpose, or you may find yourself with some legal problems.


ON THE WEB
http://www.hotwired.com/webmonkey/98/01/index3a.html?collection= graphics_fonts You can get a little more information about creating cross-browser pages that include downloadable fonts at HotWired’s WebMonkey Web site.

Resources on the Web

A great many resources on the Web can give you more information, examples, and tips on programming CBDHTML pages. The following are some of the ones to which you can refer (and most of these sites maintain lists of links to other resources):

  Netscape’s DevEdge Online—The main Web site is located at http://developer.netscape.com/tech/index.html. To go right to the section on Dynamic HTML, try http://developer.netscape.com/tech/dynhtml/index.html.
In addition to its Web-based resources, Netscape maintains a Cross-Browser Dynamic HTML mailing list. To join this list, send email to xbrowser@netscape.com, and in the subject of the message type subscribeyour_email_address.
  Mike Hall’s Cross-Browser Dynamic HTML Library—His Web site is located at http://members.aol.com/MHall75819/index.html, and the library can be found at http://members.aol.com/MHall75819/dhtml/cbdhtml.html.
  The Dynamic Duo Cross-Browser Dynamic HTML—This collection of functions and techniques supporting cross-browser deployment of Dynamic HTML documents can be found at http://www.dansteinman.com/dynduo/.
  Active Layers API—The Active Layers API can be downloaded from http://www.alapi.com/lite2/.
  Macromedia’s Dynamic HTML Zone—Macromedia maintains a Web site devoted to Dynamic HTML, part of which naturally promotes its own Shockwave technology as a natural means of achieving cross-browser compatible effects, along with Dynamic HTML. The Dynamic HTML Zone is located at http://www.dhtmlzone.com/index.html. They have an article on cross-browser compatibility issues at http://www.dhtmlzone.com/articles/dhtml.html.
  C|Net’s Builder.com—The C|Net Builder.com site hosts a variety of information and products devoted to all the different Web technologies. The Builder.com site is at http://www.builder.com/ and its Dynamic HTML section can be found at http://www.builder.com/Authoring/Dhtml/.


Previous Table of Contents Next


Products |  Contact Us |  About Us |  Privacy  |  Ad Info  |  Home

Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.