From: Jeremias Maerki Date: Sat, 6 Feb 2010 18:19:31 +0000 (+0000) Subject: Related to Bugzilla #47232: X-Git-Tag: fop-1_0~70 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd80abff7286861c0dc30e7b22b38865bac6e36e;p=xmlgraphics-fop.git Related to Bugzilla #47232: The same bug that existed for Type 1 fonts (fixed in rev 777459) also applies to TrueType fonts. The last glyph in a font was reported to have zero width. Bug exists since 2001. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@907265 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fonts/MultiByteFont.java b/src/java/org/apache/fop/fonts/MultiByteFont.java index b22b92e2f..1e6bd4f84 100644 --- a/src/java/org/apache/fop/fonts/MultiByteFont.java +++ b/src/java/org/apache/fop/fonts/MultiByteFont.java @@ -147,7 +147,7 @@ public class MultiByteFont extends CIDFont { /** {@inheritDoc} */ public int[] getWidths() { int[] arr = new int[width.length]; - System.arraycopy(width, 0, arr, 0, width.length - 1); + System.arraycopy(width, 0, arr, 0, width.length); return arr; }