[aXSL-commit] SF.net SVN: axsl:[2984] trunk/axsl/axsl-font/src/main /java/org/axsl/font/ConsumerFon
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2026-03-08 14:35:11
|
Revision: 2984
http://sourceforge.net/p/axsl/code/2984
Author: victormote
Date: 2026-03-08 14:35:09 +0000 (Sun, 08 Mar 2026)
Log Message:
-----------
Add method to get/create a FontUse instance.
Modified Paths:
--------------
trunk/axsl/axsl-font/src/main/java/org/axsl/font/ConsumerFont.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-07 23:38:56 UTC (rev 2983)
+++ trunk/axsl/axsl-font/src/main/java/org/axsl/font/ConsumerFont.java 2026-03-08 14:35:09 UTC (rev 2984)
@@ -24,6 +24,7 @@
package org.axsl.font;
import org.axsl.primitive.sequence.ByteSequence;
+import org.axsl.ps.Encoding;
import java.util.Collection;
@@ -50,6 +51,13 @@
FontConsumer getFontConsumer();
/**
+ * 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.
+ * @return The {@link FontUse} for this font, using {@code encoding}.
+ */
+ FontUse getFontUse(Encoding encoding);
+
+ /**
* Returns the collection of child {@link FontUse} instances, i.e. those {@link FontUse} created for this font.
* This will ordinarily contain only one instance, but in the case of Type1 fonts that require multiple encodings
* for access to all glyphs, it may contain more.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|