Author: tilman
Date: Sat Jan 24 13:44:00 2026
New Revision: 1931506
Log:
PDFBOX-5660: improve comments, as suggested by Valery Bokov; closes #405
Modified:
pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
Modified:
pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
==============================================================================
---
pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
Sat Jan 24 13:43:33 2026 (r1931505)
+++
pdfbox/branches/3.0/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java
Sat Jan 24 13:44:00 2026 (r1931506)
@@ -105,9 +105,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.
*/
@@ -254,7 +254,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