, February 18, 2002 1:03 PM
To: [EMAIL PROTECTED]
Subject:Re: Embedding fonts - works from command line FOP
but not in Coco on 2
The user config file is getting loaded (seen this in the log
file). But for
some reason, the font is not getting embedded
Removing the embed-font attribute results in an error. Removing the entire
font tag is making the Serializer ignore the font altogether, thus
embedding default font.
Not embed-font, embed-file! And what error? What does your
userconfig.xml look like? Don't remove the metrics-file attribute.
PROTECTED]
Subject:Re: Embedding fonts - works from command line FOP
but not in Coco on 2
Removing the embed-font attribute results in an error. Removing
the entire
font tag is making the Serializer ignore the font altogether,
thus
embedding default font
This looks good. I wonder where the string - error comes from. You've
probably double-checked that the userconfig.xml can be loaded from where
you're running Cocoon. I don't have any more ideas other than to debug
it. Sorry. Does anybody else have an idea?
Sorry for misquoting. I actually meant
-triplet);
}
}
-Original Message-
From: Jeremias Maerki [SMTP:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 6:21 PM
To: [EMAIL PROTECTED]
Subject:Re: Embedding fonts - works from command line FOP
but not in Coco on 2
To: [EMAIL PROTECTED]
Subject:RE: Embedding fonts - works from command line FOP
but not in Coco on 2
I managed to generate the PDF finally (without embedding the font).
The font
we referred to is OCR-B-1. But Acrobat Reader displays illegible
characters
[SMTP:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 11:25 PM
To: [EMAIL PROTECTED]
Subject:Re: Embedding fonts - works from command line FOP
but not in Coco on 2
Well, I'm no Cocoon-user. I just happen to have looked at the source
code
The user config file is getting loaded (seen this in the log file). But for
some reason, the font is not getting embedded.
I have a question on the way fonts are treated in FOP. Other pdf generators
allow us to specify whether fonts need to be embedded or referenced in the
pdf file. If
Well, I'm no Cocoon-user. I just happen to have looked at the source
code once or twice. Try to modify the logging configuration of Cocoon so
it displays debug messages from FOPSerializer.java. It may help you to
find out what really happens (for example if the user config could be
loaded or
You have to specify your user-config file. Look at the javadocs of
org.apache.cocoon.serialization.FOPSerializer.
From the javadocs...
* The use of a config file for FOP is enabled by adding a configuration
* element to the serializer in the sitemap.
* user-config
Message-
From: Jeremias Maerki [SMTP:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 12:04 AM
To: [EMAIL PROTECTED]
Subject: Re: Embedding fonts - works from command line FOP but not in
Cocoon 2
You have to specify your user-config file. Look at the javadocs
Maybe you can try the following setting:
font metrics-file=file:///E:/mypath/bembo.xml
embed-file=E:\mypath\bembo___.pfb kerning=yes
font-triplet name=Bembo style=normal weight=normal/
/font
At 12:21 PM 2002/1/16 -0600, you wrote:
I'm using the userconfig file in a servlet,
You could first check that the font really did get embedded in the PDF.
Open the PDF (I use acrobat reader) and do File/Document
Properties/Fonts
Is the font you expect really embedded (look in the ActualFont column).
If it did not, check that fop has access to the font file - you may??
need to
On Wed, 29 Aug 2001, Drew Hodge wrote:
I have successfully created new XML font metrics files using the PFMReader utility
in FOP 0.20.1. I run FOP specifying the new fonts in my userconfig file as follows
!-- Syntax-Roman --
font metrics-file=..\jar\Fop-0.20.1\fonts\syntax_roman.xml
On Mon, 13 Aug 2001, Matthias Born wrote:
hi!
i've got problems embedding fonts.
[snip]
i configured the userconfig in the conf-directory in the following way:
fonts
font metrics-file=zurich.xml kerning=yes embed-file=zurich.ttf
font-triplet
15 matches
Mail list logo