2009/2/6 Jeremias Maerki <[email protected]>:
> You have to put the "substitutions" element in a separate "fonts"
> element directly under the "fop" element, not the renderer. So this
> should look like this:
>
> <fop version="1.0">
>  <fonts>
>    <substitutions>
>      <substitution>
>        <from font-family="SimSun" font-weight="700..900"/>
>        <to font-family="SimHei"/>
>      </substitution>
>      [more substitutions here]
>    </substitutions>
>  </fonts>
>  <renderers>
>    <renderer mime="application/pdf">
>      <font>
>        [your font declarations]
>

Thanks you, It works fine now !

>
> On 06.02.2009 10:50:34 Dongsheng Song wrote:
>> When I use the following conf:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <fop version="1.0">
>>   <renderers>
>>     <renderer mime="application/pdf">
>>       <fonts>
>>         <substitutions>
>>           <substitution>
>>             <from font-family="SimSun" font-style="italic"/>
>>             <to font-family="SimSun"/>
>>           </substitution>
>
> This doesn't make any sense: substituting SimSun with SimSun.
>

No, without this, I got missing glyphs, though I set:
  font-family="Times New Roman,Cambria,Cambria
Math,serif,SimSun,Symbol,ZapfDingbats"

But in some mix(english & Chinese) sentence, fop stil use "Times
Italic", not "SimSun“.

---
Dongsheng Song

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to