xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Philippe Courson <jean-philippe.cour...@cognitran.com>
Subject Re: Chinese PDFs and non embedded fonts
Date Tue, 24 Apr 2012 16:30:51 GMT
Just tried, same result.

<?xml version="1.0"?>
<fop version="1.0">
  <use-cache>false</use-cache>
  <base>.</base>
  <fonts>
    <referenced-fonts>
      <match font-family=".*"/>
    </referenced-fonts>
  </fonts>
  <renderers>
    <renderer mime="application/pdf">
      <filterList>
        <value>flate</value>
      </filterList>
      <fonts>
        <directory>./fonts</directory>
      </fonts>
    </renderer>
  </renderers>
</fop>

~/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-element.pdf
Apr 24, 2012 5:27:33 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "δ»…" (0x4ec5) not available in font "SimSun".
Apr 24, 2012 5:27:33 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "δΎ›" (0x4f9b) not available in font "SimSun".
Apr 24, 2012 5:27:33 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "参" (0x53c2) not available in font "SimSun".
Apr 24, 2012 5:27:33 PM org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "考" (0x8003) not available in font "SimSun".

Regards,
JP


On 24 Apr 2012, at 17:09, Glenn Adams wrote:

> btw, have you tried using the <directory/> element without the <auto-detect/>
element? e.g.
> 
> <fonts>
>   <directory>./fonts-to-reference-without-embedding</directory>
> </fonts>
> 
> 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 <glenn@skynav.com> wrote:
> 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?FMID=1802
> 
> 
> On Tue, Apr 24, 2012 at 9:46 AM, Jean-Philippe Courson <jean-philippe.courson@cognitran.com>
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.

> 
> Thanks for your help
> 


Mime
View raw message