Matplotlib expects to find .ttf
fonts on your system. Newer versions of OS X use .dfont
files. Converting them is easy, and putting them in a proper font path is also easy. The user font path on OS X is ~/Library/Fonts/
, and matplotlib will find fonts here.
- First, install what you'll need:
- matplotlib
- fondu (
port install fondu
, orbrew install fondu
)
- Then find your desired font file. For system font files, the easiest way to do this is in the FontBook application. You can open FontBook in your utlities folder. Then select your font of choice, right click on it, and select "Show in Finder". You'll need to know where it is. Many system fonts are in places like
/System/Library/Fonts/...
- Move to your user's font directory
~/Library/Fonts/
. - Use
fondu
to convert the OS-X specific font file (ends with.dfont
) to.ttf
.