[aXSL-commit] SF.net SVN: axsl: [442] trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-03-19 23:56:17
|
Revision: 442 Author: victormote Date: 2006-03-19 15:56:07 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=442&view=rev Log Message: ----------- Add new methods to allow external font registration. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 19:18:01 UTC (rev 441) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 23:56:07 UTC (rev 442) @@ -24,6 +24,8 @@ import org.axsl.font.output.FontOutputFactory; import org.axsl.ps.Encoding; +import java.net.URL; + /** * <p>FontServer provides some basic system-wide services such as listing * available fonts.</p> @@ -144,4 +146,23 @@ */ public String getFontFamilyForAlias(String alias) ; + /** + * Register a font for use by the system. + * @param fontID A unique ID for this font (e.g. "Courier-Bold"). + * @throws FontException If a font with this <code>fontID</code> is already + * registered. + */ + public void registerFont(String fontID, URL fontFileURL, + URL metricsFileURL, String collectionID, String embed, + String systemName) throws FontException ; + + /** + * Indicates whether a font has already been registered for use by the + * system. + * @param fontID The unique font ID for the font (e.g. "Courier-Bold"). + * @return True iff a font with ID of <code>fontID</code> is already + * registered. + */ + public boolean isRegisteredFont(String fontID) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |