Constant

Writer::FONT_PATH

The system font path. The sytem font path will be determined differently for each operating system.

Win32:Uses ENV[‘SystemRoot’]/Fonts as the system font path. There is an extension that will handle this better, but until and unless it is distributed with the standard Ruby Windows installer, PDF::Writer will not depend upon it.
OS X:The fonts are found in /System/Library/Fonts.
Linux:The font path list will be found (usually) in /etc/fonts/fonts.conf or /usr/etc/fonts/fonts.conf. This XML file will be parsed (using REXML) to provide the value for FONT_PATH.
[]
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.