Index: FopConfBuilder.java
===================================================================
--- FopConfBuilder.java	(revision 1767990)
+++ FopConfBuilder.java	(working copy)
@@ -41,7 +41,7 @@
 
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
-
+import org.apache.fop.apps.FopConfBuilder.FontsConfBuilder;
 import org.apache.fop.render.RendererConfigOption;
 
 /**
@@ -437,6 +437,22 @@
             fontsEl.appendChild(dir);
             return this;
         }
+        
+        /**
+         * Add a &lt;classpath-resource&gt; for specifying fonts in the classpath. Specify either the path to a font (e.g.
+         * mycompany/fonts/myfont.ttf) or a package (e.g. mycompany/resources/fonts). To distinguish between packages and files the
+         * package must be specified using slashes '/' to separate the components, not dots'.'. This means that in the examples above you 
+         * must not write <s>'mycompany.fonts.myfont.ttf'</s> nor <s>mycompany.resources.fonts</s>.
+         *
+         * @param resourcePath the path to the font or a package to check for fonts (slashes '/' must be used to separate the path components)
+         * @return <b>this</b>
+         */
+        public FontsConfBuilder<P> addClasspathResource(String resourcePath) {
+            Element classpathResource = fopConfDOM.createElement("classpath-resource");
+            classpathResource.setTextContent(resourcePath);
+            fontsEl.appendChild(classpathResource);
+            return this;
+        }
 
         /**
          * Create a font &lt;substitution&gt;.
