summaryrefslogtreecommitdiff
path: root/tree/font.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-18 07:26:25 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-18 07:26:25 +0100
commit88074516976927dbb436888c47ff25ef53578a0d (patch)
tree218c8af4da9d6dfd454c5af234648c1988d6062f /tree/font.c
parent2724ed5685e87dd6491df510de384ffe03223991 (diff)
downloadmupdf-88074516976927dbb436888c47ff25ef53578a0d.tar.xz
image bit depths 2 and 4
Diffstat (limited to 'tree/font.c')
-rw-r--r--tree/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree/font.c b/tree/font.c
index 0814efba..b7367ce1 100644
--- a/tree/font.c
+++ b/tree/font.c
@@ -185,7 +185,7 @@ fz_hmtx
fz_gethmtx(fz_font *font, int cid)
{
int l = 0;
- int r = font->nhmtx;
+ int r = font->nhmtx - 1;
int m;
if (!font->hmtx)
@@ -212,7 +212,7 @@ fz_getvmtx(fz_font *font, int cid)
fz_hmtx h;
fz_vmtx v;
int l = 0;
- int r = font->nvmtx;
+ int r = font->nvmtx - 1;
int m;
if (!font->vmtx)