From: Tore Engvig Date: Mon, 16 Apr 2001 16:07:30 +0000 (+0000) Subject: PR: X-Git-Tag: PRE_CODEFORMATTING~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba4275fd3944255e0bdaa491bc453af885f52280;p=xmlgraphics-fop.git PR: Submitted by: Rafal Maczewski Fixes a signedness bug in handling cmaps that caused some fonts to be invalid. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194212 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fonts/TTFFile.java b/src/org/apache/fop/fonts/TTFFile.java index 682233dbc..0cd0521b8 100644 --- a/src/org/apache/fop/fonts/TTFFile.java +++ b/src/org/apache/fop/fonts/TTFFile.java @@ -179,7 +179,7 @@ public class TTFFile { int startRangeOffset = in.getCurrentPos(); for (int i = 0; i < (cmap_segCountX2 / 2); i++) { - cmap_rangeOffsets[i] = in.readTTFShort(); + cmap_rangeOffsets[i] = in.readTTFUShort(); } int glyphIdArrayOffset = in.getCurrentPos();