summaryrefslogtreecommitdiff
path: root/tree/font.c
diff options
context:
space:
mode:
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)