cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <>
Subject [suggestion]adding fontBaseDir support in fop config
Date Thu, 14 Oct 2004 03:27:08 GMT
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 :
but in fontsconfig.xml the font path is like 
    <value>file:/C:/My Documents/IBM/wsad/workspace/PowerOA/WebContent/</value>
    <font metrics-file="simkai.xml" kerning="yes" embed-file="C:/WINNT/Fonts/simkai.ttf">
      <font-triplet name="simkai" style="normal" weight="normal"/>
    <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"/>
Fop using File() and to get font file,so it doesn't support context: or cocoon://
 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.

Roy Huang
View raw message