Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 73740 invoked from network); 15 Sep 2008 17:35:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Sep 2008 17:35:53 -0000 Received: (qmail 56760 invoked by uid 500); 15 Sep 2008 17:35:50 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 56618 invoked by uid 500); 15 Sep 2008 17:35:50 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 56607 invoked by uid 99); 15 Sep 2008 17:35:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 10:35:50 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of sjurnm@mac.com does not designate 195.197.172.115 as permitted sender) Received: from [195.197.172.115] (HELO gw01.mail.saunalahti.fi) (195.197.172.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 17:34:50 +0000 Received: from a88-112-48-13.elisa-laajakaista.fi (a88-112-48-13.elisa-laajakaista.fi [88.112.48.13]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 6E95E151B9D for ; Mon, 15 Sep 2008 20:34:41 +0300 (EEST) Message-Id: <563D3F2D-0FF2-444E-BED5-3D1778F066FA@mac.com> From: Sjur Moshagen To: dev@forrest.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Re: FOPNGSerializer and user-configurable fonts - fonts not found Date: Mon, 15 Sep 2008 20:34:40 +0300 References: <42A281E5-140D-48B4-B364-4DA49289DF28@mac.com> <20080909111300.9F2E.60BA733C@jeremias-maerki.ch> X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org Den 9. sep. 2008 kl. 14.07 skrev Sjur Moshagen: > Den 9. sep. 2008 kl. 13.23 skrev Jeremias Maerki: > >> >> I would strongly suggest to upgrade to FOP 0.95 soon. There have >> been a >> large number of improvements in font handling and auto-detection >> after >> the 0.94 release. It also goes the remaining way to make XML font >> metrics files really obsolete. This is be a matter of replacing the >> JAR >> file for FOP and XML Graphics Commons. I've done that locally. I can >> commit the changes if everyone's ok with it. > > +1 After I updated my local svn copy of Forrest to the latest and greatest (incl. fop 0.95), it now works without problems, at least after a first round of testing. And it all works without any need for the xml font metric files, just as Jeremias wrote above. This is a great improvement! >> I've been able to create a PDF with FOP 0.95 and customized fonts but >> only if I hardcode the config file to this: >> src/documentation/fop-config.xml >> >> With the entity, I didn't manage. So maybe the above problem is not a >> wrong config file format but maybe the somewith with those entity >> files. > > The entity seems to work fine for me. If I change the config file > ref to some non-existing file/path, I get back an error that the > config file could not be found. > > I would like to have a look at the entity thing as soon as FOP 0.95 > is available. To me, there is no difference between entity and hard-coded file reference. This is on MacOS X 10.5.x (java 1.5). Feedback from other systems would be welcome - try add your own fop- config file, reference it using an entity, and specify some custom pdf fonts in forrest.properties.xml. See the svn pdf plugin documentation, and links in the beginning of this thread for the details. Best regards, Sjur