[aXSL-commit] SF.net SVN: axsl:[2986] trunk/axsl/axsl-font/src/main /java/org/axsl/font/FontConsume
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2026-03-08 15:45:54
|
Revision: 2986
http://sourceforge.net/p/axsl/code/2986
Author: victormote
Date: 2026-03-08 15:45:52 +0000 (Sun, 08 Mar 2026)
Log Message:
-----------
Add method to return the ConsumerFont for a given Font.
Modified Paths:
--------------
trunk/axsl/axsl-font/src/main/java/org/axsl/font/FontConsumer.java
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-08 15:02:24 UTC (rev 2985)
+++ trunk/axsl/axsl-font/src/main/java/org/axsl/font/FontConsumer.java 2026-03-08 15:45:52 UTC (rev 2986)
@@ -146,10 +146,17 @@
FontUse getFontUse(Font font, Encoding encoding);
/**
+ * Returns the {@link ConsumerFont} that wraps the use of a {@link Font}, creating it as needed.
+ * @param font The {@link Font} for which the {@link ConsumerFont} should be returned.
+ * @return The {@link ConsumerFont} for {@code font}.
+ */
+ ConsumerFont getConsumerFont(Font font);
+
+ /**
* Returns the collection of {@link ConsumerFont} instances that have been used by this FontConsumer.
* @return The collection of {@link ConsumerFont} instances used by this FontConsumer.
*/
- Collection<ConsumerFont> getUsedFonts();
+ Collection<ConsumerFont> getConsumerFonts();
/**
* <p>Optimizes the fonts used by this FontConsumer.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|