You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/09/20 13:25:44 UTC
DO NOT REPLY [Bug 36729] New: -
Font metrics-url and embed-url are aways absolute, fails without good error message
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36729>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36729
Summary: Font metrics-url and embed-url are aways absolute, fails
without good error message
Product: Fop
Version: 1.0dev
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: pdf renderer
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: ken.blackler@jrc.it
Under 1.0 the metrics-url and embed-url attribites of the <font> element are
not relative to the specified base directory.
Therefore they are loading from the working directory of the process (which is
usually c:\windows\system32 if your server is running as a windows service).
Under 0.20 one was able to call:
org.apache.fop.configuration.Configuration.put
("fontBaseDir","/absolute/path/to/metrics/directory");
or put this in your configuration file.
Is is possible to add a way to specify a base directory for the font metric
files, or make them relative to the configuration file itself. Otherwise one
needs to encode system specific paths in the configuration file.
Also, this fails silently at the moment, and later on throws a null pointer
error. Logging of the failure to load a metric file is labelled as todo. Since
this is going to be a common error, a meaningful message will save users hours
of trying to figure out what is happening....
Attached is a patch file to log a meaningful error. Also I have moved the flag
of successfull loading so that the flag is only set if they are really loaded.
Should the exception propogate up rather than swallowing it?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.