You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2023/02/01 07:14:28 UTC
svn commit: r1907180 - in /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf: GlyphSubstitutionTable.java TrueTypeFont.java
Author: lehmi
Date: Wed Feb 1 07:14:28 2023
New Revision: 1907180
URL: http://svn.apache.org/viewvc?rev=1907180&view=rev
Log:
PDFBOX-4189: fix javadoc
Modified:
pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyphSubstitutionTable.java
pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java
Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyphSubstitutionTable.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyphSubstitutionTable.java?rev=1907180&r1=1907179&r2=1907180&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyphSubstitutionTable.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyphSubstitutionTable.java Wed Feb 1 07:14:28 2023
@@ -697,6 +697,11 @@ public class GlyphSubstitutionTable exte
return gid;
}
+ /**
+ * Returns a GsubData instance containing all scripts of the table.
+ *
+ * @return the GsubData instance representing the table
+ */
public GsubData getGsubData()
{
return gsubData;
@@ -707,9 +712,10 @@ public class GlyphSubstitutionTable exte
* method, this one does not try to find the first supported language and load GSUB data for it. Instead, it fetches
* the data for the given {@code scriptTag} (if it's supported by the font) leaving the language unspecified. It
* means that even after successful reading of GSUB data, the actual glyph substitution may not work if there is no
- * corresponding {@link GsubWorker} implementation for it.
+ * corresponding {@link org.apache.fontbox.ttf.gsub.GsubWorker} implementation for it.
*
- * @implNote This method performs searching on every invocation (no results are cached)
+ * Note: This method performs searching on every invocation (no results are cached)
+ *
* @param scriptTag a <a href="https://learn.microsoft.com/en-us/typography/opentype/spec/scripttags">script tag</a>
* for which the data is needed
* @return GSUB data for the given script or {@code null} if no such script in the font
Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java?rev=1907180&r1=1907179&r2=1907180&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java Wed Feb 1 07:14:28 2023
@@ -640,7 +640,7 @@ public class TrueTypeFont implements Fon
/**
* Returns the GSubData of the GlyphSubstitutionTable if present.
*
- * @ @return the GSubData of the GlyphSubstitutionTable or {@link GsubData#NO_DATA_FOUND} if either no GSUB data is
+ * @return the GSubData of the GlyphSubstitutionTable or {@link GsubData#NO_DATA_FOUND} if either no GSUB data is
* available or its scripts are not supported
*
* @throws IOException if the font data could not be read