You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Athalye, Rishi" <RA...@skandia.com> on 2002/10/14 21:52:11 UTC
Problem with fonts on Macintosh
Hi,
I am accessing a PDF created through FOP on a Mac m/c. The PDF opens up with
a
"Unable to find or create the font '37E92bbTimesNewRoman' " error and the
text does not render properly.
Everytime I open the PDF, it has a different code\number in front of
'TimesNewRoman' in the message.
Has anyone come across this ? What is the solution ?
I am using a font metrics file and embedding the font file by specifying the
following in the userconfig.xml
<font metrics-file="file:///D:/java/lib/fop-0.20.3/conf/ttftimes.xml"
kerning="yes" embed-file="C:\WINNT\Fonts\TIMES.ttf">
<font-triplet name="TimesNewRoman" style="normal" weight="normal"/>
</font>
Would appreciate any help\clues.
Thanks.
Rishi Athlaye
rathalye@skandia.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Problem with fonts on Macintosh
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Athalye, Rishi wrote:
> I am accessing a PDF created through FOP on a Mac m/c. The PDF opens up with
> a
> "Unable to find or create the font '37E92bbTimesNewRoman' " error and the
> text does not render properly.
> Everytime I open the PDF, it has a different code\number in front of
> 'TimesNewRoman' in the message.
The number before the "TimesNewRoman" is not part of a regular
error message. This probably indicatess a buglet in the reader.
> I am using a font metrics file and embedding the font file by specifying the
> following in the userconfig.xml
>
> <font metrics-file="file:///D:/java/lib/fop-0.20.3/conf/ttftimes.xml"
> kerning="yes" embed-file="C:\WINNT\Fonts\TIMES.ttf">
> <font-triplet name="TimesNewRoman" style="normal" weight="normal"/>
> </font>
Try a standard PDF font first (simply delete all font-family="..."
properties). If this works, try to substifute some other TTF font
in the userconfig, like
<font metrics-file="file:///D:/java/lib/fop-0.20.3/conf/ttfarial.xml"
kerning="yes" embed-file="C:\WINNT\Fonts\arial.ttf">
<font-triplet name="TimesNewRoman" style="normal" weight="normal"/>
</font>
(No need to rename the font in the FO)
It also shouldn't hurt to upgrade to 0.20.4.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org