cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: [suggestion]adding fontBaseDir support in fop config
Date Thu, 14 Oct 2004 10:28:53 GMT
roy huang wrote:
> Hi,fop block developers:
>     I have checked fop block src and fop own src.
>     In fop serializer configuration ,user can use relative path and protocol like :
> <user-config>context://fontsconfig.xml</user-config>
> but in fontsconfig.xml the font path is like 
>   <entry>
>     <key>fontBaseDir</key>
>     <value>file:/C:/My Documents/IBM/wsad/workspace/PowerOA/WebContent/</value>
>   </entry>
>   <fonts>
>     <font metrics-file="simkai.xml" kerning="yes" embed-file="C:/WINNT/Fonts/simkai.ttf">
>       <font-triplet name="simkai" style="normal" weight="normal"/>
>     </font>
>     <font metrics-file="simsun.xml"  kerning="yes" embed-file="C:/WINNT/Fonts/simsun.ttc">
>       <font-triplet name="SimSun" style="normal" weight="normal"/>
>       <font-triplet name="simsun" style="normal" weight="normal"/>
>     </font>
>   </fonts>
> Fop using File() and to get font file,so it doesn't support context: or
cocoon:// protocol
>  Obviously,this config is not friendly.Could it possible let user set fontBaseDir in
serializer config using context: and then let serializer convert to real path and then set
 to fop?Maybe it is something like <render> in fop serializer configurations.

It's a known issue:


View raw message