On 21 Feb 2001 20:45:52 -0800, Randall Barber <[EMAIL PROTECTED]> wrote:
>Now, within PHP, I try to call pdf_set_font($pdf, "Times-Roman", 12, =
>"host", 1);

>Do to a lack of information in the PHP manuals (for instance, where =
>fonts need to reside; how you call them if they don't reside there =

Do you have the documentation from PDFLib? Most of that information should
apply directly to the PHP interface to PDFLib (which does basically assume you
know PDF well).

My understanding is that "builtin" for fonts applies to certain fonts which are
built in to the various Acrobat distributions (Courier, Times-Roman, Helvetica)
and thus should always be available while "host" used system fonts, requiring
that the font be present to create (to get the font metrics) and view the PDF.

For host fonts, you can set an environmental variable named PDFLIBRESOURCE to
point to a PDFLib configuration file, one entry in which would point to the
directory containing your .afm fonts. (There are a couple other ways in which
PDFlib can find that resource file depending on your platform; check the manual
if the environmental variable approach isn't vaiable)

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to