Parcourir la source

Metrics need to be added before the font properties to avoid NPEs on font replacement.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1002980 13f79535-47bb-0310-9956-ffa450edef68
pull/29/head
Jeremias Maerki il y a 13 ans
Parent
révision
a6e34202c6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/java/org/apache/fop/afp/fonts/AFPFontCollection.java

+ 1
- 1
src/java/org/apache/fop/afp/fonts/AFPFontCollection.java Voir le fichier

@@ -61,9 +61,9 @@ public class AFPFontCollection implements FontCollection {
List/*<FontTriplet>*/ tripletList = afpFontInfo.getFontTriplets();
for (Iterator it2 = tripletList.iterator(); it2.hasNext();) {
FontTriplet triplet = (FontTriplet)it2.next();
fontInfo.addMetrics("F" + num, afpFont);
fontInfo.addFontProperties("F" + num,
triplet.getName(), triplet.getStyle(), triplet.getWeight());
fontInfo.addMetrics("F" + num, afpFont);
num++;
}
}

Chargement…
Annuler
Enregistrer