Return-Path: X-Original-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Delivered-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F5E97DBA for ; Wed, 26 Oct 2011 18:58:50 +0000 (UTC) Received: (qmail 15632 invoked by uid 500); 26 Oct 2011 18:58:50 -0000 Delivered-To: apmail-xmlgraphics-fop-users-archive@xmlgraphics.apache.org Received: (qmail 15615 invoked by uid 500); 26 Oct 2011 18:58:49 -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 15607 invoked by uid 99); 26 Oct 2011 18:58:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 18:58:49 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of med1985@gmail.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qw0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 18:58:44 +0000 Received: by qadz32 with SMTP id z32so2897393qad.27 for ; Wed, 26 Oct 2011 11:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ZNdD8DayasPnptHxW9hQIHHw0YOZx0q2yjtkJFdCOkE=; b=ksnFruoYlOOgQq3mce5LV6Sl6QZAmwhuXZeAv7w+fydjDx1dViCQOiZUwqDs6hsy75 2vuu/HTRugEN7N1FNrkCcBRrFQmiOOZXw6Vdgh7WHNvsOm1IiU0Q7B/C4e47fvnmd4Bt 8iZNvOGzofd5PHRBBUJNDTJKW4Blu9IYzn42E= MIME-Version: 1.0 Received: by 10.68.14.198 with SMTP id r6mr46766339pbc.104.1319655502297; Wed, 26 Oct 2011 11:58:22 -0700 (PDT) Received: by 10.142.12.1 with HTTP; Wed, 26 Oct 2011 11:58:22 -0700 (PDT) In-Reply-To: <4EA81F38.7070109@takoma.fr> References: <4EA80830.8060704@gmx.de> <4EA81F38.7070109@takoma.fr> Date: Wed, 26 Oct 2011 19:58:22 +0100 Message-ID: Subject: Re: Configuring fonts for an embeded FOP 1.0 From: mehdi houshmand To: fop-users@xmlgraphics.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Heiko, May I suggest, because working with System fonts isn't always intuitive, that you load fonts explicitly, that way, if something doesn't work. You always know it's a config issue not some System magic. Mehdi On 26 October 2011 15:54, Pascal Sancho wrote: > Hi, > see below... > > Le 26/10/2011 15:16, Heiko a =E9crit : >> Hi, >> I use FOP 1.0 inside an Eclipse RCP client to generate different pdf >> reports. >> Inside my xslt file, I have lines like: >> >> > font-style=3D"normal" font-weight=3D"bolder" padding-bottom=3D"18pt" >> margin=3D"0pt" space-before=3D"6pt" space-after=3D"6pt"> >> >> While debugging the report generation process I looked inside the >> FopFactory -> FontManager -> FontCache ->FontFileMap >> and found the following line: >> >> null=3Dmetrics-url=3DARIALN.xml, embed-url=3DARIALN.ttf, kerning=3Dtrue, >> enc-mode=3DEncodingMode:auto, font-triplet=3D[Arial Narrow,normal,400, A= rial >> Narrow MT,normal,400] >> >> This should be the correct font(file) for the above defined font >> >> But while proccessing the data I get the following errors: >> >> 26.10.2011 14:16:15 org.apache.fop.events.LoggingEventListener processEv= ent >> WARNUNG: Font "Arial Narrow,normal,500" not found. Substituting with >> "any,normal,400". >> 26.10.2011 14:16:16 org.apache.fop.events.LoggingEventListener processEv= ent >> WARNUNG: Font "Arial Narrow,normal,400" not found. Substituting with >> "any,normal,400". >> 26.10.2011 14:16:17 org.apache.fop.events.LoggingEventListener processEv= ent >> WARNUNG: Font "Arial Narrow,normal,700" not found. Substituting with >> "any,normal,700". >> >> If I understand it right, when I don't define a base font URL, FOP looks >> for at the system font path for all fonts =A0or? > > No: > font-base defaults to FOP base (witch defaults to current dir), see [1]. > See also [2]: as Glenn said, you can either load *all* system fonts > (with auto-detect feature), > or load fonts from specified directory (witch can be lighter). > > > [1] > http://xmlgraphics.apache.org/fop/1.0/configuration.html#general-elements > [2] http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics > >> What di I have to do (programaticlly) that FOP knows my wished font? >> >> Thanks in advance >> >> Heiko > > -- > Pascal > > --------------------------------------------------------------------- > 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