diff options
Diffstat (limited to 'src/java/org/apache/fop/fonts/autodetect')
-rw-r--r-- | src/java/org/apache/fop/fonts/autodetect/FontFileFinder.java | 2 | ||||
-rw-r--r-- | src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fonts/autodetect/FontFileFinder.java b/src/java/org/apache/fop/fonts/autodetect/FontFileFinder.java index d0f7b4f14..11b52f916 100644 --- a/src/java/org/apache/fop/fonts/autodetect/FontFileFinder.java +++ b/src/java/org/apache/fop/fonts/autodetect/FontFileFinder.java @@ -156,7 +156,7 @@ public class FontFileFinder extends DirectoryWalker implements FontFinder { * * @param dir directory to search * @return list of font files - * @throws IOException io exception + * @throws IOException thrown if an I/O exception of some sort has occurred */ public List find(String dir) throws IOException { List results = new java.util.ArrayList(); diff --git a/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java b/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java index 484710d1a..b2ee4a274 100644 --- a/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java +++ b/src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java @@ -94,9 +94,9 @@ public class FontInfoFinder { //Full Name usually includes style/weight info so don't use these traits //If we still want to use these traits, we have to make FontInfo.fontLookup() smarter - triplets.add(new FontTriplet(fullName, Font.STYLE_NORMAL, Font.WEIGHT_NORMAL, 0)); + triplets.add(new FontTriplet(fullName, Font.STYLE_NORMAL, Font.WEIGHT_NORMAL)); if (!fullName.equals(strippedName)) { - triplets.add(new FontTriplet(strippedName, Font.STYLE_NORMAL, Font.WEIGHT_NORMAL, 0)); + triplets.add(new FontTriplet(strippedName, Font.STYLE_NORMAL, Font.WEIGHT_NORMAL)); } Set familyNames = customFont.getFamilyNames(); Iterator iter = familyNames.iterator(); |