Return-Path: Delivered-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Received: (qmail 5823 invoked from network); 28 Sep 2005 06:25:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2005 06:25:03 -0000 Received: (qmail 7424 invoked by uid 500); 28 Sep 2005 06:24:56 -0000 Delivered-To: apmail-xmlgraphics-fop-users-archive@xmlgraphics.apache.org Received: (qmail 7408 invoked by uid 500); 28 Sep 2005 06:24:55 -0000 Mailing-List: contact fop-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-users@xmlgraphics.apache.org Delivered-To: mailing list fop-users@xmlgraphics.apache.org Received: (qmail 7395 invoked by uid 99); 28 Sep 2005 06:24:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 23:24:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [80.67.18.16] (HELO smtprelay04.ispgateway.de) (80.67.18.16) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 23:25:01 -0700 Received: (qmail 13652 invoked from network); 28 Sep 2005 06:24:31 -0000 Received: from unknown (HELO [127.0.0.1]) (276315@[84.137.10.194]) (envelope-sender ) by smtprelay04.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 28 Sep 2005 06:24:31 -0000 Message-ID: <433A371D.6090809@tzi.de> Date: Wed, 28 Sep 2005 08:24:29 +0200 From: Dirk Bromberg User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: fop-users@xmlgraphics.apache.org Subject: Re: Font embedding FOP dev References: <4339AB20.4090105@tzi.de> <200509280818.54914.mm@arcus.com.au> In-Reply-To: <200509280818.54914.mm@arcus.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok, thanks. with file:///E:/mypath_to_font.... it works... btw: the path to the metrics can be setup as relative path to the "startup dir" but the "fontpath has to be absolute..." Dirk Manuel Mall wrote: > On Wed, 28 Sep 2005 05:07 am, Andreas L Delmelle wrote: > >> On Sep 27, 2005, at 22:27, Dirk Bromberg wrote: >> >>> i wants to test to switch my project from 20.5 to dev. >>> >>> Now i want to embedd my ttf fonts via the fop.xconf. >>> >> >> >> >>> but i always get the exception "D:\mypath_to_run\ArialUNI.xml >>> FileNotFoundException" .... the Path is not relative to the xconf! >>> it is relative to my running directory. >>> >> Ouch! The user-configuration functionality is not fully ported yet, >> especially the baseURL bit... Sorry. The entry is present in >> fop.xconf, but currently serves no purpose. >> >> Since I do need to finish up a few things in that area of the code, >> most likely I'll be able to squeeze it in during the weekend. >> >> >>> How can i set the right directory? I've tried to set the >>> D:\mypath_to_run\confdir as basePath via the >>> fop.getUserAgent().setBaseURL(...) but there was no change... >>> >> The only way I see that might --note: not 100% sure-- temporarily >> solve your problem is to include the full pathnames in the >> font-triplet (possibly even as full 'file://' URLs to avoid them from >> being interpreted as a relative URLs) >> >> Why the baseURL isn't taken into account when building the font-list, >> I'm not certain, but this does mean that even if I complete the >> user-configurable baseURL, it still won't work as it did before... >> >> For now, try out with absolute URLs in the triplets. As far as I >> understand the related code, that should do the trick. >> >> > > This is a known problem with the trunk code (see > http://issues.apache.org/bugzilla/show_bug.cgi?id=36729). I had a look > at fixing it but it involves changes to the font subsystem. That area > of code is currently being completely rewritten (integration of a 3rd > party font system) and I would expect this to be fixed as part of that > work. However, this may not happen in a real hurry. > > For the time being you have to use absolute paths or to be more correct > full URLs in your font definition files, that is everything must start > with file:// as Andreas suggested and be fully qualified. > > >> If not, don't hesitate to report back. >> >> HTH! >> >> Cheers, >> >> Andreas >> >> > Manuel > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org