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 Benoit THIERRY <be...@eurodoc.com> on 2006/03/27 16:58:47 UTC

Unicode or font problem using Fop Trunk

Hi,
I am trying to generate a pdf file from a 'fo file' which content is in
Greek.

This file was working using version 0.20.5 but is not working anymore.

Indeed, the greek characters are replaced by a "#" character except for
the bookmarks which are displayed correctly.

Any advice or tip will be welcome ...

Thanks in advance, ben


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


Re: Unicode or font problem using Fop Trunk

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Did you see that the configuration format has changed from 0.20.5 to
0.91beta and trunk? Check the log output of FOP for indications that it
can't find your unicode fonts you had to register to get the greek text
display correctly.

On 27.03.2006 16:58:47 Benoit THIERRY wrote:
> Hi,
> I am trying to generate a pdf file from a 'fo file' which content is in
> Greek.
> 
> This file was working using version 0.20.5 but is not working anymore.
> 
> Indeed, the greek characters are replaced by a "#" character except for
> the bookmarks which are displayed correctly.
> 
> Any advice or tip will be welcome ...


Jeremias Maerki


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


Re: Unicode or font problem using Fop Trunk

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
The TrueType font hasn't been embedded because you used "embed-file"
instead of "embed-url". Also a little detail that changed from 0.20.5 to
today.

On 29.03.2006 14:46:04 Benoit THIERRY wrote:
> Hello everybody,
> 
> I manage to find the reason why my font was not found :
> 
> - I was still using the xml format of the userconfig.xml file and not fop.xconf one and I had just replaced the fonts part of fop.xconf by the "0.20.5" userconfig.xml file's fonts part.
> 
> Now, I don't have my error message anymore but this time, I have an error message when I open the resulting pdf file saying that the 'Arial' font cannot be found or can not be created. So now, I don't have # characters replacing greek characters but nothing at all.
> 
> You can find my fop.xconf file attached.
> 
> I tried the various TTFReader options to generate xml font files including '-enc ansi' but I still have the same problem.
> 
> Any idea ?



Jeremias Maerki


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


Re: Unicode or font problem using Fop Trunk

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 28.03.2006 16:22:39 Benoit THIERRY wrote:
> Hi,
> Concerning my font problem (using jdk1.5 and fop trunk but I think it's the same problem using 0.91beta):
> 
> My error message : 
> Font 'Arial,normal,400' not found. Substituting with default font.

Is that the only error message?

> 
> Here is a part of what I have in fop.xconf for the fonts section :
> 
> <fonts>
> 	<!--ARIAL NORMAL NORMAL-->
> 	<font metrics-file="arial.xml" kerning="yes" embed-file="arial.ttf">
> 		<font-triplet name="Arial" style="normal" weight="normal"/>
> 		<font-triplet name="ArialMT" style="normal" weight="normal"/>
> 	</font>

Hmm, this seems right but without the larger context (i.e. seeing the
whole file) I cannot be sure.
> 
> Here is a part of my fo file :
> 
> <fo:block font-weight="normal" font-family="Arial" font-size="22pt" text-align="center">Προεπιλεγμένη Διαμόρφωση Σταθμών</fo:block>
> 
> I don't know if that can help you.
> 
> Thanks in advance.
> 
> For information, what has changed from version 0.20.5 and 0.91beta on configuration format ?

You can see for yourself:
0.20.5: 
http://xmlgraphics.apache.org/fop/0.20.5/configuration.html
http://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_20_5/conf/userconfig.xml

0.91beta:
http://xmlgraphics.apache.org/fop/0.91/configuration.html
http://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_91-beta/conf/fop.xconf


Jeremias Maerki


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


Re: Unicode or font problem using Fop Trunk

Posted by Chris Bowditch <bo...@hotmail.com>.
Benoit THIERRY wrote:

> Hi,
> I am trying to generate a pdf file from a 'fo file' which content is in
> Greek.
> 
> This file was working using version 0.20.5 but is not working anymore.

So I guess you are using 0.91beta then?

> 
> Indeed, the greek characters are replaced by a "#" character except for
> the bookmarks which are displayed correctly.
> 
> Any advice or tip will be welcome ...

In order to help you we really need to see some snippets of your XSL-FO, 
and your font configuration in the fop.xconf file.

How did you generate the font metrics from TTF file or PFM? Which 
renderer are using? I might be that you need to use -enc ansi option 
when you generate the font metrics.

Chris



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