Browse Source

FOP-2530: fix performance regression in MultiByteFont.findGlyphIndex as suggested by dvineshkumar@gmail.com

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1705133 13f79535-47bb-0310-9956-ffa450edef68
pull/39/head
Matthias Reischenbacher 8 years ago
parent
commit
008e18bf05
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/java/org/apache/fop/fonts/MultiByteFont.java

+ 3
- 0
src/java/org/apache/fop/fonts/MultiByteFont.java View File

@@ -237,6 +237,9 @@ public class MultiByteFont extends CIDFont implements Substitutable, Positionabl
if (idx < NUM_MOST_LIKELY_GLYPHS) {
mostLikelyGlyphs[idx] = retIdx;
}
if (retIdx != 0) {
break;
}
}
}
return retIdx;

Loading…
Cancel
Save