Hi,
 
As per the http://xml.apache.org/fop/configuration.html and http://xml.apache.org/fop/embedding.html document,
 
we can set the baseDir and fontBaseDir using org.apache.fop.configuration.Configuration.
Here is an example that sets the "baseDir" configuration in a Unix environment:
org.apache.fop.configuration.Configuration.put("baseDir","/my/base/dir");
Here is another that sets baseDir in a Windows environment:
org.apache.fop.configuration.Configuration.put("baseDir","C:\my\base\dir");
 
How do I use that values for font-metrics or embed-file attribute in the userconfig.xml?
 
 
Clay Leeds <[EMAIL PROTECTED]> wrote:
On Jul 27, 2004, at 8:57 PM, Varadharajan Sethuraman wrote:
> my problem is that I don't want to specify the absolute path for the
> font-metrics or embed-file attribute (C:\Fop_0.20.5\fonts\ or
> C:\windows\fonts\) in the userconfig.xml to support the fonts. Because
> it will cause the portablity problem.
>
> Anybody knows the solution for this issue kindly mail me ...
>
> or is there any way to set or pass the value for font-metrics or
> embed-file attribute dynamically .
>
> -Varadha

According to the FOP Fonts Page[1]:

* Starting with FOP version 0.20.5 you can use URLs for the paths to
the font files. Relative URLs are resolved relative to the fontBaseDir
property (or baseDir) if available. See FOP: Configuration[2] for more
information.

[1]
http://xml.apache.org/fop/fonts.html

[2]
http://xml.apache.org/fop/configuration.html

In addition, if you must port this to another system, you should be
able to modify the fontBaseDir only once. Does this solve your dilemma?

Web Maestro Clay


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Reply via email to