[aXSL-commit] SF.net SVN: axsl: [441] 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 19:18:09
|
Revision: 441 Author: victormote Date: 2006-03-19 11:18:01 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=441&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-15 00:26:24 UTC (rev 440) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 19:18:01 UTC (rev 441) @@ -110,4 +110,38 @@ */ public boolean fontOutputFactoryAvailable(String mime); + /** + * Register a font-family for use by the system. + * @param name The name of the font-family (e.g. "Courier"). + * @throws FontException If the font-family is already registered. + */ + public void registerFontFamily(String name) throws FontException ; + + /** + * Indicates whether a font-family has already been registered for use by + * the system. + * @param name The name of the font-family (e.g. "Courier"). + * @return True iff the font-family is already registered. + */ + public boolean isRegisteredFontFamily(String name) ; + + /** + * Add a font-family alias. + * @param alias The name of the font-family alias (e.g. "sans-serif"). + * @param realFamily The name of the real font-family to which this alias + * should be associated (e.g. "Helvetica"). + * @throws FontException If the font-family alias is already registered, or + * if <code>realFamily</code> is not a registered font-family. + */ + public void registerFontFamilyAlias(String alias, String realFamily) + throws FontException; + + /** + * Finds the font-family that is associated with a given font-family alias. + * @param alias The name of the font-family alias. + * @return The name of the font-family to which the alias is pointed, or + * null if there is no font-family alias registered for <code>alias</code>. + */ + public String getFontFamilyForAlias(String alias) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |