From a69a5a48f384ff8b6e83343e96cda91191f53ee3 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Fri, 22 May 2009 10:38:49 +0000 Subject: [PATCH] Bugzilla #47232: for the last character of a Type1 font, always a width of 0 was returned. Patch submitted by Maxim Wirt. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@777459 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fonts/SingleByteFont.java | 2 +- status.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fonts/SingleByteFont.java b/src/java/org/apache/fop/fonts/SingleByteFont.java index 8739b42a4..fb4725bd4 100644 --- a/src/java/org/apache/fop/fonts/SingleByteFont.java +++ b/src/java/org/apache/fop/fonts/SingleByteFont.java @@ -94,7 +94,7 @@ public class SingleByteFont extends CustomFont { /** {@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; } diff --git a/status.xml b/status.xml index a45bb8746..8a1368ca6 100644 --- a/status.xml +++ b/status.xml @@ -58,6 +58,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Bugfix: for the last character of a Type1 font, always a width of 0 was returned. + Changed meaning of ‘-v’ option to ‘verbose’, which will print FOP’s version and proceed. Added a ‘-version’ option to simply print the version then exit, following Java practices. -- 2.39.5