Thanks Adrian.

NFOP isn't very active, indeed. In October, I sent an email with two patches to their author but didn't receive any response. To date, NFOP isn't capable of using Unicode fonts on Windows.

I was asking the FOP mailing list because the code equals 99%. Using any type of Java bridge would work, however, I thought I might be not too far from having the issue solved.

I was wondering if anyone who's fluent with embedding fonts could point me to some place where "usually" problems occur with that.

When will your patch be applied?

Best regards
Robert


Adrian Cumiskey wrote:
Hi Robert,

Firstly, have you posted a question about this on the NFOP forum (http://sourceforge.net/mailarchive/forum.php?forum_id=12848)? NFOP doesn't appear to be a very active project.

This mailing list is really just focused on Apache FOP project's XSL FO implementation. There are many improvements in FOP 0.93, and font (auto)configuration/detection is about to become much easier when my patch is applied to the trunk. If it is possible for you to switch over to using FOP instead maybe via HTTP calls to the FOPServlet I would recommend that you do so.

Best of luck,

Adrian Cumiskey.

Robert Soeding wrote:
Hi, - As this is my first message here, I'd like to thank you very much
for providing and maintaining FOP. -

I'm using NFOP 1.1.0, which is translated almost 1:1 from FOP 0.20.5.

I would like to embed fonts into the resulting PDF document.

Currently, I'm registering fonts to FOP / the PDF document by code:

   Configuration.put("fonts", <ArrayList of FontInfo objects>);
   Configuration.put("fontBaseDir", "...");

That seems to work; font information is written by the PDFFont.toPDF()
method (but no (binary) "font code" / the font itself) (where would this be done?). Font information also appears in Acrobat Reader's document properties.

Nevertheless, the fonts won't get embedded, and Acrobat Reader reports
them as missing when they're not installed at the target computer.

My first problem is, this doesn't work completely, and moreover, I
cannot find anything else to be configurable by code.
The file paths to the metrics and font files are correct BTW, and the
issue concerns both TrueType and Type1 fonts.

OK, an alternative was to use <fop-dir>/conf/userconfig.xml. My problems
with that are, first, I don't know the XML root tag, resp., the XML
schema (I've already found the syntax of adding fonts there, though).
Second, this should produce the same results as manipulating the
Configuration directly.

Any ideas?

Best regards
Robert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to