pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1654407 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontLike.java
Date Fri, 23 Jan 2015 22:15:55 GMT
Author: tilman
Date: Fri Jan 23 22:15:54 2015
New Revision: 1654407

URL: http://svn.apache.org/r1654407
Log:
PDFBOX-2576: methods in interfaces are always public abstract

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontLike.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontLike.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontLike.java?rev=1654407&r1=1654406&r2=1654407&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontLike.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFontLike.java Fri Jan
23 22:15:54 2015
@@ -32,22 +32,22 @@ public interface PDFontLike
     /**
      * Returns the name of this font, either the PostScript "BaseName" or the Type 3 "Name".
      */
-    public String getName();
+    String getName();
 
     /**
      * Returns the font descriptor, may be null.
      */
-    public PDFontDescriptor getFontDescriptor();
+    PDFontDescriptor getFontDescriptor();
 
     /**
      * Returns the font matrix, which represents the transformation from glyph space to text
space.
      */
-    public Matrix getFontMatrix();
+    Matrix getFontMatrix();
 
     /**
      * Returns the font's bounding box.
      */
-    public abstract BoundingBox getBoundingBox() throws IOException;
+    BoundingBox getBoundingBox() throws IOException;
 
     /**
      * Returns the position vector (v), in text space, for the given character.
@@ -57,7 +57,7 @@ public interface PDFontLike
      * @param code character code
      * @return position vector
      */
-    public Vector getPositionVector(int code);
+    Vector getPositionVector(int code);
 
     /**
      * Returns the height of the given character, in glyph space. This can be expensive to
@@ -65,14 +65,14 @@ public interface PDFontLike
      *
      * @param code character code
      */
-    public abstract float getHeight(int code) throws IOException;
+    float getHeight(int code) throws IOException;
 
     /**
      * Returns the advance width of the given character, in glyph space.
      *
      * @param code character code
      */
-    public float getWidth(int code) throws IOException;
+    float getWidth(int code) throws IOException;
 
     /**
      * Returns the width of a glyph in the embedded font file.
@@ -81,17 +81,17 @@ public interface PDFontLike
      * @return width in glyph space
      * @throws IOException if the font could not be read
      */
-    public abstract float getWidthFromFont(int code) throws IOException;
+    float getWidthFromFont(int code) throws IOException;
 
     /**
      * Returns true if the font file is embedded in the PDF.
      */
-    public abstract boolean isEmbedded();
+    boolean isEmbedded();
 
     /**
      * Returns true if the embedded font file is damaged.
      */
-    public abstract boolean isDamaged();
+    boolean isDamaged();
 
     /**
      * This will get the average font width for all characters.
@@ -99,5 +99,5 @@ public interface PDFontLike
      * @return The width is in 1000 unit of text space, ie 333 or 777
      */
     // todo: this method is highly suspicious, the average glyph width is not usually a good
metric
-    public float getAverageFontWidth();
+    float getAverageFontWidth();
 }



Mime
View raw message