Tags: , , , ,

Recently, I’ve been expermenting with PHP’s PS functions – the PECL extension that allows you to directly output PostScript from your scripts. There are other projects that come to mind (html2ps is another one that will render to PostScript) but I wanted somsething more tightly intergrated into my script.

Mysteriously, when I went to install my scripts on the new Poweredge I bought, I began to get there strange errrors:

ps_findfont() [function.ps-findfont]: PSlib warning: Trying to insert the glyph ‘.notdef’ which already exists. Please check your afm file for duplicate glyph names.

I couldn’t understand what was going on – it was working fine on the previous server. After googling about the web and wracking my brains for about two hours, I checked the versions of PSlibĀ  installed on the two servers. Both were masked by Gentoo’s Portage system, but the unmasked version on the previous server was 0.2.6, whereas the one on the new server was 0.4.1. After I masked out 0.4.1 (thanks to Gentoo’s awesome package.mask) and downgraded back to 0.2.6, everything began working again.

So there you have it. Apparently the PECL PS extension is not completely compatible with the most recent version of PSlib, and downgrading back seems to work. Hope this helps somebody!

2 Responses to “PHP, PostScript and ATM Fonts”


  1. [...] Leopard doesn’t come with the PECL PS extension. PECL PS requires pslib, and the last version I verified to work the PS extension was 0.2.6 (I still have an outstanding bug for that). There’s a minor little [...]

  2. Mark Says:

    did you ever get this project done? I’m looking for good examples using the PSlib. I’m hoping you might have a source.


Leave a Reply