aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2010-02-06 18:19:31 +0000
committerJeremias Maerki <jeremias@apache.org>2010-02-06 18:19:31 +0000
commitbd80abff7286861c0dc30e7b22b38865bac6e36e (patch)
tree3818692cc26d15731c0a4b71a8c3fe918836ef8c /src/java/org/apache/fop
parent56b6bee870af953e5e24b99e8e57f3378012b87c (diff)
downloadxmlgraphics-fop-bd80abff7286861c0dc30e7b22b38865bac6e36e.tar.gz
xmlgraphics-fop-bd80abff7286861c0dc30e7b22b38865bac6e36e.zip
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
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/fonts/MultiByteFont.java2
1 files changed, 1 insertions, 1 deletions
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;
}