Author: tilman
Date: Sat Jan 24 13:43:33 2026
New Revision: 1931505
Log:
PDFBOX-5660: improve comments, as suggested by Valery Bokov; closes #405
Modified:
pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
Modified:
pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
Sat Jan 24 13:35:59 2026 (r1931504)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
Sat Jan 24 13:43:33 2026 (r1931505)
@@ -99,9 +99,9 @@ public class TTFParser
}
/**
- * Parse a RandomAccessRead and return a TrueType font.
+ * Parse a RandomAccessRead and return the table headers.
*
- * @param randomAccessRead The RandomAccessREad to be read from. It will
be closed before returning.
+ * @param randomAccessRead The randomAccessRead to be read from. It will
be closed before returning.
* @return TrueType font headers.
* @throws IOException If there is an error parsing the TrueType font.
*/
@@ -248,7 +248,7 @@ public class TTFParser
*
* This method can be optimized further by skipping unused portions inside
each individual table parser
*
- * @param font the TrueTypeFont instance holding the parsed data.
+ * @param raf the TrueType data stream.
* @throws IOException If there is an error parsing the TrueType font.
*/
FontHeaders parseTableHeaders(TTFDataStream raf) throws IOException