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 abahel <ab...@hotmail.com> on 2006/07/27 16:15:35 UTC
Font problem
Dear FOP users:
I am using fop-0.92 beta to transform xml2pdf. The document uses GillSansMT
fonts.
I have converted all Gil****.ttf files to Gil****.xml files using TTFReader.
The program executes fine and produces the pdf file. But when I try to view
it using Adobe pdf viewer it gives following error:
"cannot find or create "font 1e2d9GillSansMT,"Bold". Some characters may not
display or print correctly"
Here are partial code from configuration file and xsl file.
========configuration file===========
<font metrics-url="FONTS\GILB____.xml" kerning="yes"
embed-url="GILB____.ttf">
<font-triplet name="GillSans" style="normal" weight="bold"/>
<font-triplet name="GillSansMT" style="normal" weight="bold"/>
</font>
==========xsl file==================
<fo:block font-family="GillSansMT" fontstyle = "normal" font-weight="bold"
font-size="14pt" text-align="center">
<xsl:value-of select="part-2"></xsl:value-of>
</fo:block>
I would appreciate any help.
Thanks,
--Atul
--
View this message in context: http://www.nabble.com/Font-problem-tf2009831.html#a5521859
Sent from the FOP - Users forum 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 problem
Posted by abahel <ab...@hotmail.com>.
Thanks Chris and Pascal. It worked when both ttf and xml files were in the
same folder in my case it is fonts.
--
View this message in context: http://www.nabble.com/Font-problem-tf2009831.html#a5525988
Sent from the FOP - Users forum 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 problem
Posted by Chris Bowditch <bo...@hotmail.com>.
abahel wrote:
> Dear FOP users:
>
> I am using fop-0.92 beta to transform xml2pdf. The document uses GillSansMT
> fonts.
> I have converted all Gil****.ttf files to Gil****.xml files using TTFReader.
> The program executes fine and produces the pdf file. But when I try to view
> it using Adobe pdf viewer it gives following error:
> "cannot find or create "font 1e2d9GillSansMT,"Bold". Some characters may not
> display or print correctly"
Ok. Are you running from command line? If so, do you se any warnings on
the screen?
>
> Here are partial code from configuration file and xsl file.
>
> ========configuration file===========
> <font metrics-url="FONTS\GILB____.xml" kerning="yes"
> embed-url="GILB____.ttf">
> <font-triplet name="GillSans" style="normal" weight="bold"/>
> <font-triplet name="GillSansMT" style="normal" weight="bold"/>
> </font>
Are your metrics in a different directory to the TTF file? You've
specified a sub directory of FONTS for the metrics, but the TTF file
will need to be in the base dir or the same location as the XML file in
order for FOP to correctly embed your font.
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org