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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to