[aXSL-commit] SF.net SVN: axsl:[2982] trunk/axsl/axsl-font/src/main /java/org/axsl/font/Font.java
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2026-03-07 15:31:59
|
Revision: 2982
http://sourceforge.net/p/axsl/code/2982
Author: victormote
Date: 2026-03-07 15:31:57 +0000 (Sat, 07 Mar 2026)
Log Message:
-----------
Add method for testing glyph availability to Font.
Modified Paths:
--------------
trunk/axsl/axsl-font/src/main/java/org/axsl/font/Font.java
Modified: trunk/axsl/axsl-font/src/main/java/org/axsl/font/Font.java
===================================================================
--- trunk/axsl/axsl-font/src/main/java/org/axsl/font/Font.java 2026-03-07 09:47:03 UTC (rev 2981)
+++ trunk/axsl/axsl-font/src/main/java/org/axsl/font/Font.java 2026-03-07 15:31:57 UTC (rev 2982)
@@ -685,4 +685,13 @@
*/
BigDecimal simulateStretch(FontStretch stretch);
+ /**
+ * Reports on the availability of a glyph in this font, without regard to encoding issues.
+ * In other words, if this method returns true, the glyph may be available in an encoding other than the native
+ * font encoding.
+ * @param codePoint The Unicode code point to be tested.
+ * @return True if and only if this font can paint a glyph for {@code codePoint} using some encoding.
+ */
+ boolean glyphAvailable(int codePoint);
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|