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 Dan Check <da...@jloreview.com> on 2003/06/17 17:45:11 UTC
font embedding problem
Hi all,
I'm having a persistent and frustrating problem with font embedding.
The general problem is this: my embedded fonts are recognized and
rendered by Acrobat, but not by ghostwriter, kghostview, xpdf, Mac OS
X's Preview.app etc.
I'm running the latest version of FOP (0.20.5rc3a) on an OS X 10.2
machine with JDK 1.4.1.
The fonts are Type 1 fonts, converted from Mac FONT format using
TransMac and CrossFont, with XML files created as per the instructions
on the FOP site.
xpdf will open the file and render non-fontified text, but sends a
series of error messages like this [these error messages are the same
when trying to view the file on a freebsd machine]:
Error (351865): Illegal character '>'
Error (351865): Missing 'endstream'
Error (396575): Missing 'endstream'
Error (440024): Missing 'endstream'
Error (487303): Missing 'endstream'
Error (440024): Missing 'endstream'
Error (351865): Illegal character '>'
kghostview opens the file, but fails to render anything past the first
block of fontified text.
Preview.app renders the text in a default font.
When I try to run Imagemagick's `identify` on a pdf with embedded
fonts, I get the following:
**** Warning: stream Length incorrect.
Error: /typecheck in --get--
Operand stack:
--dict:5/5(L)-- F15 12.0 --dict:9/9(L)-- --dict:9/9(L)--
--dict:10/10(L)-- 698 0 698 --nostringval-- 698 BaseFont
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop
1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- 2 1
19 --nostringval-- %for_pos_int_continue --nostringval--
--nostringval-- --nostringval-- --nostringval-- %array_continue
--nostringval-- false 1 %stopped_push --nostringval--
%loop_continue --nostringval-- --nostringval-- --nostringval--
--nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1052/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)--
--dict:75/200(L)-- --dict:100/127(ro)(G)-- --dict:230/230(ro)(G)--
--dict:20/24(L)-- --dict:4/6(L)-- --dict:23/31(L)--
--dict:1052/1123(ro)(G)-- --dict:2/5(L)--
Current allocation mode is local
AFPL Ghostscript 8.00: Unrecoverable error, exit code 1
Here's an embed line from my userconf.xml file:
<font metrics-file="webapp/WEB-INF/fonts/xml/BauerBodoni-Roman.xml"
kerning="yes"
embed-file="webapp/WEB-INF/fonts/pfb/BauerBodoni-Roman.pfb">
<font-triplet name="BBodoni Regular" style="normal"
weight="normal"/>
</font>
Has anyone else run into this problem? I realize that it may not have
anything to do with FOP. Maybe it's that my pfbs aren't compatible
with ghostscript's Type 1 rasterizer? But that doesn't fully explain
the incompatibility with Preview.app.
Are there tools out there that could help me to further diagnose the
problem?
Thanks much,
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: font embedding problem
Posted by Clay Leeds <cl...@medata.com>.
I can only dream that the problem is this simple:
On 6/17/2003 8:45 AM, Dan Check wrote:
> <font metrics-file="webapp/WEB-INF/fonts/xml/BauerBodoni-Roman.xml"
> kerning="yes" embed-file="webapp/WEB-INF/fonts/pfb/BauerBodoni-Roman.pfb">
> <font-triplet name="BBodoni Regular" style="normal" weight="normal"/>
> </font>
I heard someone mention problems with underscores "_" in path names
(URIs?) when executed under JAVA... (forget where, and it may not even
be relevant!) perhaps there're also problems with "-"? Just a thought...
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: font embedding problem
Posted by Jeremias Maerki <de...@greenmail.ch>.
On 17.06.2003 17:45:11 Dan Check wrote:
> Has anyone else run into this problem? I realize that it may not have
> anything to do with FOP. Maybe it's that my pfbs aren't compatible
> with ghostscript's Type 1 rasterizer? But that doesn't fully explain
> the incompatibility with Preview.app.
I thought I had these problems figured out by now. Would you please send
me a sample PDF with the embedded font (off-line). I'll have a look at
it.
> Are there tools out there that could help me to further diagnose the
> problem?
Don't know of any. I usually figure out what's wrong by debugging FOP's
code.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org