You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Glenn Brand <gb...@odprofessional.com> on 2008/02/15 20:34:49 UTC

Need to set a Relative font path in config file

How do I make the path in the config file relative to where fop is
installed. I want to put our fonts in a directory with fop.

We are doing this right now but the target directory changes at times
and we want the installer to be able to install without writing the path
into the config file.

 

       <font metrics-url="file:///c:/ODProfessional/Fonts/arial.xml"
kerning="yes" embed-url="file:///c:/ODProfessional/Fonts/arial.ttf">
          <font-triplet name="Arial" weight="normal" style="normal"/>
        </font>

        <font metrics-url="file:///c:/ODProfessional/Fonts/arialbd.xml"
kerning="yes" embed-url="file:///c:/ODProfessional/Fonts/arialbd.ttf">
          <font-triplet name="Arial" weight="bold" style="normal"/>
        </font>

        <font metrics-url="file:///c:/ODProfessional/Fonts/ariali.xml"
kerning="yes" embed-url="file:///c:/ODProfessional/Fonts/ariali.ttf">
          <font-triplet name="Arial" weight="normal" style="italic"/>
        </font>

 


Need to set a Relative font path in config file

Posted by Glenn Brand <gb...@odprofessional.com>.
How do I make the path in the config file relative to where fop is
installed. I want to put our fonts in a directory with fop.

We are doing this right now but the target directory changes at times
and we want the installer to be able to install without writing the path
into the config file.

 

       <font metrics-url="file:///c:/ODProfessional/Fonts/arial.xml"
kerning="yes" embed-url="file:///c:/ODProfessional/Fonts/arial.ttf">
          <font-triplet name="Arial" weight="normal" style="normal"/>
        </font>

        <font metrics-url="file:///c:/ODProfessional/Fonts/arialbd.xml"
kerning="yes" embed-url="file:///c:/ODProfessional/Fonts/arialbd.ttf">
          <font-triplet name="Arial" weight="bold" style="normal"/>
        </font>

        <font metrics-url="file:///c:/ODProfessional/Fonts/ariali.xml"
kerning="yes" embed-url="file:///c:/ODProfessional/Fonts/ariali.ttf">
          <font-triplet name="Arial" weight="normal" style="italic"/>
        </font>