Browse Source

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
tags/fop-1_0
Vincent Hennebert 15 years ago
parent
commit
a69a5a48f3
2 changed files with 4 additions and 1 deletions
  1. 1
    1
      src/java/org/apache/fop/fonts/SingleByteFont.java
  2. 3
    0
      status.xml

+ 1
- 1
src/java/org/apache/fop/fonts/SingleByteFont.java View File

@@ -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;
}


+ 3
- 0
status.xml View File

@@ -58,6 +58,9 @@
documents. Example: the fix of marks layering will be such a case when it's done.
-->
<release version="FOP Trunk" date="TBD">
<action context="Fonts" dev="VH" type="fix" fixes-bug="47232" due-to="Maxim Wirt">
Bugfix: for the last character of a Type1 font, always a width of 0 was returned.
</action>
<action context="Code" dev="VH" type="fix">
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.

Loading…
Cancel
Save