xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acumis...@apache.org
Subject svn commit: r601431 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/fonts/FopCharacterSet.java
Date Wed, 05 Dec 2007 17:28:49 GMT
Author: acumiskey
Date: Wed Dec  5 09:28:48 2007
New Revision: 601431

URL: http://svn.apache.org/viewvc?rev=601431&view=rev
Log:
Checkstyle fixes

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/fonts/FopCharacterSet.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/fonts/FopCharacterSet.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/fonts/FopCharacterSet.java?rev=601431&r1=601430&r2=601431&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/fonts/FopCharacterSet.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/fonts/FopCharacterSet.java Wed
Dec  5 09:28:48 2007
@@ -27,8 +27,8 @@
 public class FopCharacterSet extends CharacterSet {
 
     /** The character set for this font */
-    private Typeface _characterSet = null;
-    private int _size = 0;
+    private Typeface charSet = null;
+    private int size = 0;
 
     /**
      * Constructor for the CharacterSetMetric object, the character set is used
@@ -37,17 +37,18 @@
      * @param encoding the encoding of the font
      * @param name the character set name
      * @param size the font size
-     * @param characterSet the fop character set
+     * @param charSet the fop character set
      */
     public FopCharacterSet(
         String codePage,
         String encoding,
         String name,
         int size,
-        Typeface characterSet) {
+        Typeface charSet) {
+        
         super(codePage, encoding, name, null);
-        _characterSet = characterSet;
-        _size = size * 1000;
+        this.charSet = charSet;
+        this.size = size * 1000;
     }
 
     /**
@@ -63,7 +64,7 @@
      * @return the ascender value in millipoints
      */
     public int getAscender() {
-        return _characterSet.getAscender(_size);
+        return charSet.getAscender(size);
     }
 
     /**
@@ -73,7 +74,7 @@
      * @return the cap height value in millipoints
      */
     public int getCapHeight() {
-        return _characterSet.getCapHeight(_size);
+        return charSet.getCapHeight(size);
     }
 
     /**
@@ -83,7 +84,7 @@
      * @return the descender value in millipoints
      */
     public int getDescender() {
-        return _characterSet.getDescender(_size);
+        return charSet.getDescender(size);
     }
 
     /**
@@ -107,7 +108,7 @@
      * @return the widths of all characters
      */
     public int[] getWidths() {
-        return _characterSet.getWidths();
+        return charSet.getWidths();
     }
 
     /**
@@ -115,7 +116,7 @@
      * @return the typical height of characters
      */
     public int getXHeight() {
-        return _characterSet.getXHeight(_size);
+        return charSet.getXHeight(size);
     }
 
     /**
@@ -125,7 +126,7 @@
      * @return the width of the character
      */
     public int width(int character) {
-        return _characterSet.getWidth(character, _size);
+        return charSet.getWidth(character, size);
     }
 
     /**
@@ -134,7 +135,7 @@
      * @return the mapped character
      */
     public char mapChar(char c) {
-        return _characterSet.mapChar(c);
+        return charSet.mapChar(c);
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message