summaryrefslogtreecommitdiff
path: root/pdf/pdf_metrics.c
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf_metrics.c')
-rw-r--r--pdf/pdf_metrics.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/pdf_metrics.c b/pdf/pdf_metrics.c
index 3aa0ef24..ae6383eb 100644
--- a/pdf/pdf_metrics.c
+++ b/pdf/pdf_metrics.c
@@ -72,6 +72,7 @@ pdf_end_hmtx(pdf_font_desc *font)
if (!font->hmtx)
return;
qsort(font->hmtx, font->hmtx_len, sizeof(pdf_hmtx), cmph);
+ font->size += font->hmtx_cap * sizeof(pdf_hmtx);
}
void
@@ -80,6 +81,7 @@ pdf_end_vmtx(pdf_font_desc *font)
if (!font->vmtx)
return;
qsort(font->vmtx, font->vmtx_len, sizeof(pdf_vmtx), cmpv);
+ font->size += font->vmtx_cap * sizeof(pdf_vmtx);
}
pdf_hmtx