sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 32783 - http://anonsvn.icesoft.org/repo / icepdf / trunk / icepdf / core / src / org / icepdf / core / pobjects / fonts / ofont / Font.java
Unified Diff View - Font.java
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/fonts/ofont/Font.java @ revision 32782
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/fonts/ofont/Font.java @ revision 32783
@@ -457,12 +457,6 @@                 }             }         } -        // if the font is still null decode the name, which will try and find -        // the basefont, if it fails it will assign a default dialog font -        if (font == null && basefont != null && basefont.indexOf("-") != -1) { -            font = new OFont(java.awt.Font.decode(basefont)); -            basefont = font.getName(); -        }         // if still null, shouldn't be, assigned the basefont name         if (font == null) {             try { @@ -648,7 +642,7 @@         } else if (cidWidths != null) {             // cidWidth are already scaled correct to .001             font = font.deriveFont(cidWidths, firstchar, missingWidth, ascent, descent, null); -        } else if (afm != null) { +        } else if (afm != null && isAFMFont) {             font = font.deriveFont(afm.getWidths(), firstchar, missingWidth, ascent, descent, cMap);         }


feed icon

sventon 2.5.1