two more suggestions:

(1) remove the first <fonts> 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 <
[email protected]> wrote:

> 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 <[email protected]> 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 <
>> [email protected]> 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
>>>
>>
>
>
>

Reply via email to