[aXSL-commit] SF.net SVN: axsl:[2987] 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-08 16:14:30
|
Revision: 2987
http://sourceforge.net/p/axsl/code/2987
Author: victormote
Date: 2026-03-08 16:14:27 +0000 (Sun, 08 Mar 2026)
Log Message:
-----------
Remove getFontUse method from FontConsumer.
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-08 15:45:52 UTC (rev 2986)
+++ trunk/axsl/axsl-font/src/main/java/org/axsl/font/ConsumerFont.java 2026-03-08 16:14:27 UTC (rev 2987)
@@ -53,6 +53,7 @@
/**
* Returns a {@link FontUse} instance for a given encoding, creating it if necessary.
* @param encoding The encoding for which the {@link FontUse} should be retrieved.
+ * If this is null, the implication is that the font's internal encoding (if any) should be used.
* @return The {@link FontUse} for this font, using {@code encoding}.
*/
FontUse getFontUse(Encoding encoding);
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:45:52 UTC (rev 2986)
+++ trunk/axsl/axsl-font/src/main/java/org/axsl/font/FontConsumer.java 2026-03-08 16:14:27 UTC (rev 2987)
@@ -25,7 +25,6 @@
import org.axsl.i18n.Script;
import org.axsl.i18n.WritingSystem;
-import org.axsl.ps.Encoding;
import org.axsl.value.FontSelectionStrategy;
import org.axsl.value.FontStretch;
import org.axsl.value.FontStyle;
@@ -137,15 +136,6 @@
FontUse selectFontFallback();
/**
- * Creates a FontUse instance for an already-resolved Font.
- * @param font The font for which a FontUse is needed.
- * @param encoding The encoding to use for the FontUse instance.
- * If null, the native font encoding should be used.
- * @return A font use to be used by this consumer.
- */
- 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}.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|