You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/08/06 16:42:14 UTC

svn commit: r1864542 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java

Author: tilman
Date: Tue Aug  6 16:42:14 2019
New Revision: 1864542

URL: http://svn.apache.org/viewvc?rev=1864542&view=rev
Log:
PDFBOX-4622: improve javadoc

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TrueTypeFont.java

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=1864542&r1=1864541&r2=1864542&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 Tue Aug  6 16:42:14 2019
@@ -171,7 +171,7 @@ public class TrueTypeFont implements Fon
     /**
      * This will get the naming table for the true type font.
      * 
-     * @return The naming table.
+     * @return The naming table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public NamingTable getNaming() throws IOException
@@ -182,7 +182,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the postscript table for this TTF.
      * 
-     * @return The postscript table.
+     * @return The postscript table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public PostScriptTable getPostScript() throws IOException
@@ -193,7 +193,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the OS/2 table for this TTF.
      * 
-     * @return The OS/2 table.
+     * @return The OS/2 table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public OS2WindowsMetricsTable getOS2Windows() throws IOException
@@ -204,7 +204,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the maxp table for this TTF.
      * 
-     * @return The maxp table.
+     * @return The maxp table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public MaximumProfileTable getMaximumProfile() throws IOException
@@ -215,7 +215,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the head table for this TTF.
      * 
-     * @return The head table.
+     * @return The head table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public HeaderTable getHeader() throws IOException
@@ -226,7 +226,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the hhea table for this TTF.
      * 
-     * @return The hhea table.
+     * @return The hhea table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public HorizontalHeaderTable getHorizontalHeader() throws IOException
@@ -237,7 +237,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the hmtx table for this TTF.
      * 
-     * @return The hmtx table.
+     * @return The hmtx table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public HorizontalMetricsTable getHorizontalMetrics() throws IOException
@@ -248,7 +248,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the loca table for this TTF.
      * 
-     * @return The loca table.
+     * @return The loca table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public IndexToLocationTable getIndexToLocation() throws IOException
@@ -259,7 +259,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the glyf table for this TTF.
      * 
-     * @return The glyf table.
+     * @return The glyf table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public GlyphTable getGlyph() throws IOException
@@ -270,7 +270,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the "cmap" table for this TTF.
      * 
-     * @return The "cmap" table.
+     * @return The "cmap" table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public CmapTable getCmap() throws IOException
@@ -281,7 +281,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the vhea table for this TTF.
      * 
-     * @return The vhea table.
+     * @return The vhea table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public VerticalHeaderTable getVerticalHeader() throws IOException
@@ -292,7 +292,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the vmtx table for this TTF.
      * 
-     * @return The vmtx table.
+     * @return The vmtx table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public VerticalMetricsTable getVerticalMetrics() throws IOException
@@ -303,7 +303,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the VORG table for this TTF.
      * 
-     * @return The VORG table.
+     * @return The VORG table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public VerticalOriginTable getVerticalOrigin() throws IOException
@@ -314,7 +314,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the "kern" table for this TTF.
      * 
-     * @return The "kern" table.
+     * @return The "kern" table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public KerningTable getKerning() throws IOException
@@ -325,7 +325,7 @@ public class TrueTypeFont implements Fon
     /**
      * Get the "gsub" table for this TTF.
      *
-     * @return The "gsub" table.
+     * @return The "gsub" table or null if it doesn't exist.
      * @throws IOException if there was an error reading the table.
      */
     public GlyphSubstitutionTable getGsub() throws IOException