Re: Chinese PDFs and non embedded fonts

2012-04-25 Thread Chris Bowditch
On 24/04/2012 19:16, Luis Bernardo wrote: Hi Luis, Just by itself the embed-url attribute does not imply that the font will be embedded. I know that the attribute name is confusing, and the documentation may not be up to date, but I believe that is the case. Fonts are subset embedded by defaul

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Glenn Adams
bug filed at https://issues.apache.org/bugzilla/show_bug.cgi?id=53142 jean-philippe, you may want to create a bugzilla account and add yourself to the CC list for this bug On Tue, Apr 24, 2012 at 1:16 PM, Glenn Adams wrote: > ok, on digging into this further i have found: > > (1) luis is correc

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Glenn Adams
btw, this code has been present since 2008-05-08 [1] [1] http://svn.apache.org/viewvc?view=revision&revision=654461 On Tue, Apr 24, 2012 at 1:16 PM, Glenn Adams wrote: > ok, on digging into this further i have found: > > (1) luis is correct that embedding is performed by default without the > r

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Glenn Adams
ok, on digging into this further i have found: (1) luis is correct that embedding is performed by default without the referenced-fonts element; (2) in particular, when i add i see the same behavior: glyphs not found; when i remove, it works fine (and embeds subset); (3) looking at TTFFontLoader

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Luis Bernardo
Just by itself the embed-url attribute does not imply that the font will be embedded. I know that the attribute name is confusing, and the documentation may not be up to date, but I believe that is the case. Fonts are subset embedded by default unless the referenced-fonts element is present,

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Glenn Adams
two more suggestions: (1) remove the first element (containing the referenced fonts element) (2) use a current FOP 1.1dev (trunk) build [1] [1] http://ci.apache.org/projects/xmlgraphics/fop/snapshots/ On Tue, Apr 24, 2012 at 10:30 AM, Jean-Philippe Courson < jean-philippe.cour...@cognitran.com>

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Sergiu Dumitriu
On 04/24/2012 11:46 AM, Jean-Philippe Courson wrote: Hi Glenn, I don't want to embed the fonts to avoid significant font redistribution licensing costs. The produced PDFs will be distributed to people having the fonts installed on their machine. Is that particular font a hard requirement, or

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Jean-Philippe Courson
Just tried, same result.  false  .                                      flate                    ./fonts            ~/Downloads/fop-1.0/test$ ls fonts/SimSun.ttf~/Downloads/fop-1.0/test$ ../fop -fo test-fo.xml -c configuration-referenced-with-directory-element.xml output-referenced-with-directory-e

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Glenn Adams
btw, have you tried using the element without the element? e.g. ./fonts-to-reference-without-embedding this allows you to restrict the set of fonts to be accessed for reference only (non-embedded) use On Tue, Apr 24, 2012 at 9:57 AM, Glenn Adams wrote: > I notice at [1] that editable emb

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread mehdi houshmand
Hi, Unless you know this specific font is embeddable (which I don't), that's not ubiquitously true. There is a flag in the font program which indicates whether it is embeddable or not [1]. If you open it an font viewer, it should tell you the restrictions set. [1] http://www.microsoft.com/typogra

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Glenn Adams
I notice at [1] that editable embedding is allowed. Note that FOP does not embed the entire font, but only those glyphs used in the document. I would be surprised if you were subject to redistribution licensing costs given this situation. [1] http://www.microsoft.com/typography/fonts/font.aspx?FMI

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Jean-Philippe Courson
Hi Glenn, I don't want to embed the fonts to avoid significant font redistribution licensing costs. The produced PDFs will be distributed to people having the fonts installed on their machine. Thanks for your help Best regards, JP On 24 Apr 2012, at 16:28, Glenn Adams wrote: > why do you *

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Glenn Adams
why do you *not* want to embed? note that only the actually used glyphs will be embedded in a subset font, so size should not be an issue On Tue, Apr 24, 2012 at 9:15 AM, Jean-Philippe Courson < jean-philippe.cour...@cognitran.com> wrote: > Hi Glenn, > > Thanks for your reply. > > In your example

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Jean-Philippe Courson
Hi Glenn, Thanks for your reply. In your example, you are embedding the font: the embed-url attribute will get the font embedded. I have no problem creating a chinese PDF when the font is embedded. The issue I am raising is when trying to reference (not embed) the font. Thanks for your hel

Re: Chinese PDFs and non embedded fonts

2012-04-24 Thread Jean-Philippe Courson
Hi Chris, Thanks for your reply. The configuration-referenced.xml starts like this: . 72 72 I also tried not using : 1) Using a CID-keyed font metrics file: ~/Downloads/fop-1.0/test$ java -cp ../build/fop.jar:../lib/avalon-framework-4.2.0.jar:../lib/batik-all

Re: Chinese PDFs and non embedded fonts

2012-04-23 Thread Glenn Adams
with attachments On Mon, Apr 23, 2012 at 8:26 AM, Glenn Adams wrote: > I just tried this with the font you referenced and had no problem. > Attached is the configuration file and input file I used and resulting > output. I'm using the current FOP 1.1dev (trunk) build. > > As Chris points out, yo

Re: Chinese PDFs and non embedded fonts

2012-04-23 Thread Glenn Adams
I just tried this with the font you referenced and had no problem. Attached is the configuration file and input file I used and resulting output. I'm using the current FOP 1.1dev (trunk) build. As Chris points out, you may wish to avoid . Also, you notice that I disabled the font cache and placed

Re: Chinese PDFs and non embedded fonts

2012-04-23 Thread Chris Bowditch
On 23/04/2012 14:35, Jean-Philippe Courson wrote: Hi all, Hi Jean, Thank you for your replies. Please find attached a sample FO file highlighting the issue and 2 configuration files: one embedding the font, and another one referencing it. I can't see the element in either configuration f

Re: Chinese PDFs and non embedded fonts

2012-04-23 Thread Chris Bowditch
On 20/04/2012 18:54, Glenn Adams wrote: Hi Glenn, it is best you create a bug at [1] to track this; you can upload attachments on the new bug; file it under the "Fop" product; I'm not happy to encourage users on this list to open bugs before confirming there is a defect. Everything I've r

Re: Chinese PDFs and non embedded fonts

2012-04-20 Thread Glenn Adams
please provide the following info: (1) version of FOP you are using and platform on which you are running it (2) a maximally minimal input FO file that demonstrates your problem (3) the output PDF file produced by this input file (1) (4) the FOP xconf file you used to create (3) (5) all console ou

Re: Chinese PDFs and non embedded fonts

2012-04-20 Thread Jean-Philippe Courson
tag pair in the renderer? > > If it is not, then that may be why it is refusing the find the font you are > referencing. > > Best Regards, > > Robert Meyer > > > From: jean-philippe.cour...@cognitran.com > > Subject: Chinese PDFs and non embedded fonts >

RE: Chinese PDFs and non embedded fonts

2012-04-20 Thread Robert Meyer
com > Subject: Chinese PDFs and non embedded fonts > Date: Fri, 20 Apr 2012 12:55:59 +0100 > To: fop-users@xmlgraphics.apache.org > > Hi, > > I am trying to produce chinese PDFs not embedding fonts. I am using the > SimSun font. > > When embedding the font, everything

Chinese PDFs and non embedded fonts

2012-04-20 Thread Jean-Philippe Courson
Hi, I am trying to produce chinese PDFs not embedding fonts. I am using the SimSun font. When embedding the font, everything is fine. However, when trying to reference the font, FOP produced an invalid PDF, despite the Simsun font being installed on the machines were the PDF is produced and o