]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Cosmetic changes to keep Eclipse happy
authorPeter Bernard West <pbwest@apache.org>
Wed, 10 Mar 2004 12:36:53 +0000 (12:36 +0000)
committerPeter Bernard West <pbwest@apache.org>
Wed, 10 Mar 2004 12:36:53 +0000 (12:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197442 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fonts/Font.java
src/java/org/apache/fop/fonts/FontUtil.java
src/java/org/apache/fop/fonts/MultiByteFont.java

index 9cce65d74bd95dea6843b9db0c5c7c6275a562ea..19c4165dd5b7e72d03c33664df0864aaa0d979c8 100644 (file)
@@ -182,7 +182,6 @@ public class Font {
      * This also performs some guessing on widths on various
      * versions of space that might not exists in the font.
      * @param c character to inspect
-     * @param fs FontState to use
      * @return the width of the character
      */
     public int getCharWidth(char c) {
index 999836d8fada0076899e1b5a81421f112677d7a2..f35d947ca6d31fa7574e61fe62ca5f04c3e29ae1 100644 (file)
@@ -35,7 +35,7 @@ public class FontUtil {
         int weight = 400;
         try {
             weight = Integer.parseInt(text);
-            weight = ((int)weight / 100) * 100;
+            weight = (weight / 100) * 100;
             weight = Math.max(weight, 100);
             weight = Math.min(weight, 900);
         } catch (NumberFormatException nfe) {
index 62f5be9610b3a0e5e0ef3504130c9cfaddb8561f..9baf9eb3dbeba6b0d1c957918bfb51f68ea1e974 100644 (file)
@@ -200,7 +200,7 @@ public class MultiByteFont extends CIDFont {
      * @see org.apache.fop.fonts.Font#mapChar(char)
      */
     public char mapChar(char c) {
-        int idx = (int)c;
+        int idx = c;
         int retIdx = 0;
 
         for (int i = 0; (i < bfentries.length) && retIdx == 0; i++) {