Revision: 7671
Author: victormote
Date: 2006-06-17 07:18:55 -0700 (Sat, 17 Jun 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7671&view=rev
Log Message:
-----------
Apply remainder of Vincent Hennebert's patch (#1506271), using new ClasspathHandler class in font configuration to access fonts in jar files.
Modified Paths:
--------------
trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java
Modified: trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java 2006-06-17 14:10:55 UTC (rev 7670)
+++ trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java 2006-06-17 14:18:55 UTC (rev 7671)
@@ -120,6 +120,20 @@
private Locator locator;
+ /*
+ * Register the URLStreamHandler for classpath: URLs. This has to be done
+ * only once, hence a static statement.
+ */
+ static {
+ String property = System.getProperty("java.protocol.handler.pkgs");
+ if (property == null) {
+ property = "org.axsl.common.urlhandler";
+ } else {
+ property += "|org.axsl.common.urlhandler";
+ }
+ System.setProperty("java.protocol.handler.pkgs", property);
+ }
+
/**
* creates a configuration reader
* @param filename the file which contains the configuration information
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|