[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Using PostScript fonts



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I am packaging TikiWiki. It includes pdf-php, a PDF generator written in
PHP:
  http://www.ros.co.nz/pdf/

This contains font metric files (afm) for Adobe's standard fonts
(Courier, Times, Helvetica etc). These are, to my knowledge, not freely
distributable (?), so I have to strip those.

(The actual code in pdf-php is public domain.)

I plan to use the fonts from the gsfonts package instead, which should
be almost equivalent, right? In addition, since pdf-php supports any
Type1 and TrueType fonts, it would be nice to let the user utilize all
such fonts installed on the system, not just the standard fonts.

Now I would like to know if there is a mechanism that can locate font
files (both afm and pfb) based on a name like "Courier" or "Helvetica"?
It would help if the mechanism were easily available from a PHP script.

Thanks,

Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDr9GqXjXn6TzcAQkRAmfbAJ9xkfMz7DlAuAzXeXIjVDL5WKSA3gCcDt88
c1nx/M/iKHk65KfQHmZn+Qw=
=2wRU
-----END PGP SIGNATURE-----



Reply to: