Re: Why my font substitutions not worked ?



2009/2/6 Jeremias Maerki <dev@xxxxxxxxxxxxxxxxxx>:
> 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: fop-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: fop-users-help@xxxxxxxxxxxxxxxxxxxxxx



Privacy