Web Fonts
Fonts on the web behave differently than fonts in print files. While a printed document may use a proprietary font, there's no threat of distributing the licensed font files with a publication--no one can download a font file from say, a physical poster or book, and the font files used in a layout remain on the designer's computer.
With the web, websites rely upon references to actual font files to render fonts properly, and if the font files aren't present, a website will defer to what is installed on the user's computer. There are also different font formats used with the web (see this article on font file formats on W3Schools).
There are a number of system fonts that can be relied upon, however, adding custom fonts makes your design more memorable and unique. There are several font foundries and services like Adobe's TypeKit, Fonts.com, and Typography.com that permit you to license fonts for web use. These typically charge a subscription fee per font variant and/or based on your website traffic (as they incur traffic for the font files hosted on their site but used in yours).
To use:
- Get Started with the Google Fonts API
- Adobe Fonts: Add fonts to your website
- Bunny Fonts
- google-webfonts-helper (for self-hosting)
- FontSource