]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
PR:
authorTore Engvig <tore@apache.org>
Mon, 16 Apr 2001 16:07:30 +0000 (16:07 +0000)
committerTore Engvig <tore@apache.org>
Mon, 16 Apr 2001 16:07:30 +0000 (16:07 +0000)
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

src/org/apache/fop/fonts/TTFFile.java

index 682233dbcdb75714d7227b88114153d15144f198..0cd0521b8f118a54d05657dbece7a715071fdf08 100644 (file)
@@ -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();