[aXSL-commit] SF.net SVN: axsl:[2980] trunk/axsl/axsl-font/src/main /java/org/axsl/font
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2026-03-07 00:03:33
|
Revision: 2980
http://sourceforge.net/p/axsl/code/2980
Author: victormote
Date: 2026-03-07 00:03:32 +0000 (Sat, 07 Mar 2026)
Log Message:
-----------
Add optimize() method to ConsumerFont.
Modified Paths:
--------------
trunk/axsl/axsl-font/src/main/java/org/axsl/font/ConsumerFont.java
trunk/axsl/axsl-font/src/main/java/org/axsl/font/FontConsumer.java
Modified: trunk/axsl/axsl-font/src/main/java/org/axsl/font/ConsumerFont.java
===================================================================
--- trunk/axsl/axsl-font/src/main/java/org/axsl/font/ConsumerFont.java 2026-03-06 17:28:01 UTC (rev 2979)
+++ trunk/axsl/axsl-font/src/main/java/org/axsl/font/ConsumerFont.java 2026-03-07 00:03:32 UTC (rev 2980)
@@ -105,4 +105,13 @@
*/
int getEmbeddableLength3();
+ /**
+ * Optimize the information about this font in preparation for output.
+ * Implementations are free to make this a no-op.
+ * If it is run, it would be after all text has been written, usage information has been gathered, and perhaps data
+ * structures need to be sorted or otherwise prepared.
+ * @see FontConsumer#optimizeFonts()
+ */
+ void optimize();
+
}
Modified: trunk/axsl/axsl-font/src/main/java/org/axsl/font/FontConsumer.java
===================================================================
--- trunk/axsl/axsl-font/src/main/java/org/axsl/font/FontConsumer.java 2026-03-06 17:28:01 UTC (rev 2979)
+++ trunk/axsl/axsl-font/src/main/java/org/axsl/font/FontConsumer.java 2026-03-07 00:03:32 UTC (rev 2980)
@@ -170,6 +170,7 @@
* If the client runs the registration and writing tasks concurrently, it should not use this method, as doing
* so will corrupt the logical connection between the glyph indices used to embed the font and those used to write
* the document contents.</p>
+ * @see ConsumerFont#optimize()
*/
void optimizeFonts();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|