From 48b48981311664d89558078b2e50a31ea98e2527 Mon Sep 17 00:00:00 2001 From: Brian Manning Date: Mon, 9 May 2016 13:32:55 -0700 Subject: [PATCH] pdflib_demo: added font search path config directive --- pdflib_demo | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdflib_demo b/pdflib_demo index f3bf09b..70ffddf 100755 --- a/pdflib_demo +++ b/pdflib_demo @@ -43,6 +43,11 @@ try { // set up some PDFlib options $pdf->set_option("errorpolicy=return"); $pdf->set_option("stringformat=utf8"); + // all paths in 'searchpath' need to be inside curly braces + // multiple curly-braced paths in $searchpath need to be separated with + // space characters + $searchpath = '{/usr/share/fonts/dejavu/}'; + $pdf->set_option("searchpath={" . $searchpath . "}"); if ($pdf->begin_document($outfile, "") == 0) throw new Exception("Error: " . $pdf->get_errmsg()); -- 1.9.1