You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Peter Verhoye <pe...@synergetic-solutions.be> on 2005/08/04 15:19:39 UTC

Font loading problem (linux)

Hi all,

First, sorry for maybe having to ask a FAQ question but I've read the 
FAQ, tried all the pointers and hints but to no avail.

My problem is as follows:
We have FOP to generate PDF files. On windows, the PDF's come out 
correctly but on Linux, they don't. More specifically, FOP complains he 
can't find the fonts that are used (Arial and Courrier New). Now, I've 
done the obvious things as adapting the path url's already.

My fonts are located in a dir called 'fonts' that has 2 subdirs: metrics 
and truetype. All files and folders have (for now) 777 as permission set 
on them.

My userconfig.xml contains (snipped)

<fonts>
  <font 
embed-file="file:///home/peter/fop/fop-0.20.5/fonts/truetype/arial.ttf" 
kerning="yes" 
metrics-file="file:///home/peter/fop/fop-0.20.5/fonts/metrics/arial.xml">
   <font-triplet name="Arial" style="normal" weight="normal"/>
   <font-triplet name="Arial,Regular" style="normal" weight="normal"/>
  </font>
  <font 
embed-file="file:///home/peter/fop/fop-0.20.5/fonts/truetype/arialbd.ttf" 
kerning="yes" 
metrics-file="file:///home/peter/fop/fop-0.20.5/fonts/metrics/arialbd.xml">
   <font-triplet name="Arial" style="normal" weight="bold"/>
   <font-triplet name="Arial,Bold" style="normal" weight="bold"/>
  </font>
</fonts>

I have not set a fontbasedir (tried but didn't help either or I must 
have done something wrong).

My xsl that uses the fonts (part) is:
<fo:block font-weight="bold" font-family="Arial" line-height="4mm">
  <fo:inline font-size="10pt">
   <xsl:value-of select="rs:returnNote"/>
  </fo:inline>
</fo:block>

And I call FOP from the shell like this:

./fop.sh -d -c /home/peter/fop/fop-0.20.5/conf/userconfig.xml -xml 
xml/994065058000001.xml -xsl xsl/AbstractLabel.xsl -pdf pdf/mypdf.pdf

Someone has a clue? Or a hint?

Thanks in advance.

BB
Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font loading problem (linux)

Posted by WilfridUtz <wi...@gmail.com>.
Hi Adrian,


thanks for your support - it worked out fine at the end - absolute pathes
are the way to success and reloading Cocoon after every change ;-)

Thanks,

Wilfrid




Adrian Cumiskey wrote:
> 
> Hi Peter/Wilfred,
> 
> Please post up your fop.xconf user configuration file.
> 
> Adrian.
> 
> WilfridUtz wrote:
>> Hi Peter,
>> 
>> I am using Cocoon and experiencing the same problem - everything fine in
>> Windows, font not found in linux!
>> 
>> Did you come up with a solution in 2005?
>> Thanks,
>> 
>> Wilfrid
>> 
>> 
>> 
>> Peter Verhoye wrote:
>>>>> My problem is as follows:
>>>>> We have FOP to generate PDF files. On windows, the PDF's come
>>>>> out correctly but on Linux, they don't. More specifically,
>>>>> FOP complains he can't find the fonts that are used (Arial
>>>>> and Courrier New). Now, I've done the obvious things as
>>>>> adapting the path url's already.
>>>> I think Courier New has just one 'r'
>>> That's a typo in the email, sorry :-)
>>>
>>>> You have 3 names for the same font! ('Arial', Arial,Regular', and
>>>> 'Arial,Bold'). 
>>> Tried and no difference. And if I'm not mistaken, you should be able to 
>>> have multiple names for a font.
>>>
>>> BB
>>> Peter
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Font-loading-problem-%28linux%29-tf198581.html#a12552909
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font loading problem (linux)

Posted by Adrian Cumiskey <ad...@gmail.com>.
Hi Peter/Wilfred,

Please post up your fop.xconf user configuration file.

Adrian.

WilfridUtz wrote:
> Hi Peter,
> 
> I am using Cocoon and experiencing the same problem - everything fine in
> Windows, font not found in linux!
> 
> Did you come up with a solution in 2005?
> Thanks,
> 
> Wilfrid
> 
> 
> 
> Peter Verhoye wrote:
>>>> My problem is as follows:
>>>> We have FOP to generate PDF files. On windows, the PDF's come
>>>> out correctly but on Linux, they don't. More specifically,
>>>> FOP complains he can't find the fonts that are used (Arial
>>>> and Courrier New). Now, I've done the obvious things as
>>>> adapting the path url's already.
>>> I think Courier New has just one 'r'
>> That's a typo in the email, sorry :-)
>>
>>> You have 3 names for the same font! ('Arial', Arial,Regular', and
>>> 'Arial,Bold'). 
>> Tried and no difference. And if I'm not mistaken, you should be able to 
>> have multiple names for a font.
>>
>> BB
>> Peter
>>
>>
>> ---------------------------------------------------------------------
>> 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


Re: Font loading problem (linux)

Posted by WilfridUtz <wi...@gmail.com>.
Hi Peter,

I am using Cocoon and experiencing the same problem - everything fine in
Windows, font not found in linux!

Did you come up with a solution in 2005?
Thanks,

Wilfrid



Peter Verhoye wrote:
> 
>>>My problem is as follows:
>>>We have FOP to generate PDF files. On windows, the PDF's come
>>>out correctly but on Linux, they don't. More specifically,
>>>FOP complains he can't find the fonts that are used (Arial
>>>and Courrier New). Now, I've done the obvious things as
>>>adapting the path url's already.
>> 
>> I think Courier New has just one 'r'
> 
> That's a typo in the email, sorry :-)
> 
>> You have 3 names for the same font! ('Arial', Arial,Regular', and
>> 'Arial,Bold'). 
> 
> Tried and no difference. And if I'm not mistaken, you should be able to 
> have multiple names for a font.
> 
> BB
> Peter
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Font-loading-problem-%28linux%29-tf198581.html#a12531395
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org