aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache
diff options
context:
space:
mode:
authorTore Engvig <tore@apache.org>2001-04-16 16:07:30 +0000
committerTore Engvig <tore@apache.org>2001-04-16 16:07:30 +0000
commitba4275fd3944255e0bdaa491bc453af885f52280 (patch)
treee67a50b2c98526221beaf6c394e111f1e43b0cd3 /src/org/apache
parent08779923c28224ef0c1c7fe8744607fc4df3476d (diff)
downloadxmlgraphics-fop-ba4275fd3944255e0bdaa491bc453af885f52280.tar.gz
xmlgraphics-fop-ba4275fd3944255e0bdaa491bc453af885f52280.zip
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
Diffstat (limited to 'src/org/apache')
-rw-r--r--src/org/apache/fop/fonts/TTFFile.java2
1 files changed, 1 insertions, 1 deletions
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();