Mac OS X puts resources such as fonts, frameworks, and preference data in various places. When Mac OS X needs those resources, it searches known locations in a specific order until it locates the resource. This is called the
search path . Understanding the system search path is invaluable when troubleshooting system problems.
The order in which Mac OS X searches for resources is
User (~/Library)
Local (/Library)
Network (/Network/Library)
System (/System/Library)
Classic (/System Folder)
NOTE
The search order above is comprehensive, but the Network and Classic paths are skipped if not available, as is the case in many circumstances.
A good example of how search paths work involves fonts, which can reside in many locations. If you have multiple fonts of the same name installed, Mac OS X will load the first one it finds in the search path, depending upon the application requesting the resource. This order also applies to preferences and other resources in the Library folders.
MORE INFO
Refer to Knowledge Base document 106417, "Mac OS X: Font Locations and Their Purposes."
For an example of resource paths, look at how Mac OS X uses fonts and how Font Book makes it easy for you to install fonts in public or private locations. Anyone can use the Finder to drag fonts into ~/Library/Fonts and make those fonts available to their user account, but fonts installed in that location are not available to other users on the computer. This may be exactly how you intend for those fonts to be installed: you might want to install licensed fonts for only one specific user. However, most fonts are licensed for a computer system, so you might want to install them in a location that is accessible to all users.
An administrator user can install fonts in all of the system search path locations, but the /System/Library/Fonts folder is reserved for system fonts, so most of the time you will place fonts in /Library/Fonts or ~/Library/Fonts. Font Book makes it simple to install fonts in these central locations, so it's an effective tool for installing new fonts or troubleshooting font problems.
Lesson 14, "Troubleshooting."
You can use the Font Book utility to watch what happens when you move a font to the Trash.
You can use Font Book to install a font in your own Fonts folder.
1. | In Font Book's Collection column, click User. |
2. | Choose File > Add Fonts (Command-O). |
3. | In the dialog that appears, navigate to the Exported Fonts folder created in step 6 of the previous exercise. |
4. | Double-click Arial. Arial should now appear in the User's font list. |
5. | Choose File > Show Font Files (Command-R). This opens a Finder window revealing the current location (~/Library/Fonts) of the selected Arial font. |
If you log in as a different user, you don't have access to the fonts in user Apple Admin's Fonts folder.
1. | Log in as Martha Flowers. |
2. | Open TextEdit (/Applications). |
3. | Choose Format > Font > Show Fonts (Command-T). |
4. | Confirm that the Arial font is not in TextEdit's Font pane. |
5. | Log in as Apple Admin. |
6. | |
7. | Select Arial, choose File > Remove "Arial" family, then click Remove when asked if you are sure. |
8. | In Font Book's Collection column, click All Fonts, choose File > Add Fonts, then choose the exported copy of Arial. Once you have confirmed that Arial is once again available to all users, you can delete the Exported Fonts folder. |