[aXSL-commit] SF.net SVN: axsl: [444] 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-20 02:30:35
|
Revision: 444 Author: victormote Date: 2006-03-19 18:30:30 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=444&view=rev Log Message: ----------- Add method for registering a font-description item. 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-20 01:54:37 UTC (rev 443) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-20 02:30:30 UTC (rev 444) @@ -165,4 +165,21 @@ */ public boolean isRegisteredFont(String fontID) ; + /** + * Register a font description for use by the system. + * @param fontFamily The name of the font-family in which this font should + * be registered. + * @param fontID The font ID for the font that should be registered. + * @param encoding The encoding, if any, that should be used by this + * font description. Set this value to null unless you wish to override + * the encoding for this font. + * @throws FontException If <code>fontFamily</code> or <code>fontID</code> + * are not already registered. + */ + public void registerFontDescription(String fontFamily, String fontID, + Encoding encoding, byte style, short weight, byte variant, + byte stretch, float simulatedSmallCaps, float simulatedOblique, + float simulatedBackslant, float[] simulatedStretch) + throws FontException ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |