Yahoo! recommends YUI 3. Learn about YUI 3 on YUILibrary.com.
With YUI Fonts CSS in place, you can specify just the font family you want and let YUI Fonts handle the alternative-font degradation path if your desired font is missing from the user's system.
This example shows how to specify font families.
Because CSS examples are susceptible to other CSS on the page, this example is only available in a new window at the above link.
You can load the necessary JavaScript and CSS for this example from Yahoo's servers. Click here to load the YUI Dependency Configurator with all of this example's dependencies preconfigured.
All YUI 2.x users should review the YUI 2.8.2 security bulletin, which discusses a vulnerability present in YUI 2.4.0-2.8.1.

Copyright © 2013 Yahoo! Inc. All rights reserved.